当前位置:网站首页>Vscode configuration makefile compilation
Vscode configuration makefile compilation
2022-07-29 04:37:00 【Once_ day】
VScode To configure makefile compile
Author:onceday date:2022 year 7 month 26 Japan
1. Modify the terminal task configuration (Terminal)
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build", // Tag name , Used to call... In debugging
"type": "shell", // type , Optional shell and process
"command": "make",// Commands on the command line
"args": [
"clean",// For clear compilation of middleware
],// Command parameter
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc" // Wrong grab
}
]
}
Key configuration here label、command,args that will do .
Debugging requires gcc compile -g Option binary , That is, carry debugging information .
2. Modify the debugging startup file (Launch.json)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gdb_launch",
"type": "cppdbg",// Fixed type
"request": "launch",
"program": "${workspaceFolder}/a.exe",// Enter the execution path of the modal program
"args": [],// Parameter table
"stopAtEntry": false,// Progressive function pause
"cwd": "${fileDirname}",// Entry directory
"environment": [],
"externalConsole": false,// Extra console
"MIMode": "gdb",// Debugging program
"miDebuggerPath": "/path/to/gdb",// Path to debugger
"setupCommands": [
{
"description": " by gdb Enable neat printing ",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": " Set the disassembly style to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "build",// Execute the compilation task before loading
}
]
}
- It is important to program, This specifies the program to debug .
- Sometimes ,gdb The path needs to be specified , namely miDebuggerPath
3. have access to gdb server Remote debugging as an alternative .
边栏推荐
- STL source code analysis (Hou Jie) notes - STL overview
- No, just stick to it for 64 days. Find the insertion location
- New year's greetings from programmers
- Whether the modification of import and export values by ES6 and commonjs affects the original module
- 15.federation
- Classes and objects (II)
- 手机工作室网络如何组建?
- After the spinning up installation is completed, use the tutorial to test whether it is successful. There are library "Glu" not found and 'from pyglet.gl import * error solutions
- Why is it necessary to scale the attention before softmax (why divide by the square root of d_k)
- Several simple and difficult OJ problems with sequential force deduction
猜你喜欢

在线教育的推荐系统

谷歌浏览器 打开网页出现 out of memory

(heap sort) heap sort is super detailed, I don't believe you can't (C language code implementation)

On the use of pyscript (realizing office preview)

Pycharm reports an error when connecting to the virtual machine database

Introduction and examples of parameters in Jenkins parametric construction

Make a virtual human with zego avatar | virtual anchor live broadcast solution

9. Delay queue

Not for 60 days, magical dictionary

Tower of Hanoi classic recursion problem (C language implementation)
随机推荐
[c language] PTA 7-55 query fruit price
Not for 58 days. Implement prefix tree
RecyclerView通过DPAD按键上下切换焦点 切换到界面外的控件时焦点会左右乱跳
What is the use of meta-info?
Visio draw grid
MySQL - clustered index and secondary index
Christmas tree web page and Christmas tree application
ssm整合增删改查
Won't you just stick to 69 days? Merge range
Corresponding order of 18 and 25coco data of openpose and joint points
网络之以太网
After the spinning up installation is completed, use the tutorial to test whether it is successful. There are library "Glu" not found and 'from pyglet.gl import * error solutions
No, just stick to it for 64 days. Find the insertion location
【Express连接MySQL数据库】
[c language] PTA 7-49 have fun with numbers (partially correct)
WebRTC实现简单音视频通话功能
Dasctf2022.07 empowerment competition
Laya中的A星寻路
visio画网格
Niuke IOI weekly 27 popularity group