当前位置:网站首页>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 .
边栏推荐
- 正确的用户拖拽方式
- Redux quick start
- C language: typedef knowledge points summary
- Makefile(make)常见规则(二)
- VScode配置makefile编译
- Back propagation process of manual BP neural network
- Exception resolution: error of not finding edu.stanford.nlp.semgraph.semgrex.semgrexpattern in cococaption package
- Kotlin's list, map, set and other collection classes do not specify types
- Mujoco and mujoco_ Install libxcursor.so 1:NO such dictionary
- Star a pathfinding in LAYA
猜你喜欢

File operation (Advanced C language)

Christmas tree web page and Christmas tree application

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

mujoco和mujoco_py安装以及解决libXcursor.so.1:NO such dictionary

Several simple and difficult OJ problems with sequential force deduction

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

Back propagation process of manual BP neural network

There are objections and puzzles about joinpoint in afterreturning notice (I hope someone will leave a message)

Pycharm reports an error when connecting to the virtual machine database

Corresponding order of 18 and 25coco data of openpose and joint points
随机推荐
There are objections and puzzles about joinpoint in afterreturning notice (I hope someone will leave a message)
使用容器部署Jenkins
12. Priority queue and inert queue
Visio draw grid
img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
Nail dialog text converted to pictures cannot be copied and pasted on the document
用 ZEGO Avatar 做一个虚拟人|虚拟主播直播解决方案
Pyscript cannot import package
spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
MySQL - 深入解析MySQL索引数据结构
Install the gym corresponding to mujoco in the spinning up tutorial, and the error mjpro150 is reported
Kotlin's list, map, set and other collection classes do not specify types
New year's greetings from programmers
Basic operation of queue
Auto.js脚本开发环境搭建
Sequence list and linked list
Laya中的A星寻路
Corresponding order of 18 and 25coco data of openpose and joint points
恒星科通邀您“湘”约第24届中国高速公路信息化大会暨技术产品展示会
央企建筑企业数字化转型核心特征是什么?