当前位置:网站首页>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 .
边栏推荐
- [C language] PTA 7-47 binary leading zero
- Won't you just stick to 62 days? Sum of words
- STL source code analysis (Hou Jie) notes -- Classification and testing of stl containers
- Unity Foundation (3) -- various coordinate systems in unity
- Exception resolution: error of not finding edu.stanford.nlp.semgraph.semgrex.semgrexpattern in cococaption package
- Detailed comparison of break and continue functions
- 恒星科通邀您“湘”约第24届中国高速公路信息化大会暨技术产品展示会
- post导出数据,返回
- [C language] power table of 3 generated by PTA 7-53
- C language: summary of consortium knowledge points
猜你喜欢

Classes and objects (III)

TypeError: Cannot read properties of undefined (reading ‘then‘)

恒星科通邀您“湘”约第24届中国高速公路信息化大会暨技术产品展示会

命令行交互工具(最新版) inquirer 实用教程
![Configure st-gcn environment record [Google lab]](/img/dc/138a40b01ebb4c79b6758d4642d47b.png)
Configure st-gcn environment record [Google lab]

论pyscript使用感想(实现office预览)

Not for 58 days. Implement prefix tree

VScode 一键编译和调试

在线教育的推荐系统

Don't stick to it for 68 days. Baboons eat bananas
随机推荐
Leetcode 686. KMP method of repeatedly superimposing strings (implemented in C language)
visio画网格
C language: typedef knowledge points summary
Oracle update and delete data
VScode配置makefile编译
Post export data, return
There are objections and puzzles about joinpoint in afterreturning notice (I hope someone will leave a message)
Unity Foundation (3) -- various coordinate systems in unity
MySQL - 聚簇索引和辅助索引
Down sampling and up sampling
异常解决:cococaption包出现找不到edu.stanford.nlp.semgraph.semgrex.SemgrexPattern错误
使用容器部署Jenkins
[c language] PTA 7-63 falling ball
Classes and objects (II)
On quotation
常见的限流方式
[C] PTA 6-8 finding the height of binary tree
【Express连接MySQL数据库】
MySQL - clustered index and secondary index
12. Priority queue and inert queue