当前位置:网站首页>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 .
边栏推荐
- UE 在场景或UMG中播放视频
- 12. Priority queue and inert queue
- Basic operation of queue
- Record the Niua packaging deployment project
- C language: enumerating knowledge points summary
- post导出数据,返回
- 【Express连接MySQL数据库】
- Exception resolution: error of not finding edu.stanford.nlp.semgraph.semgrex.semgrexpattern in cococaption package
- C language: summary of consortium knowledge points
- Google browser opens the web page and out of memory appears
猜你喜欢

Star a pathfinding in LAYA

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

Post export data, return
![Configure st-gcn environment record [Google lab]](/img/dc/138a40b01ebb4c79b6758d4642d47b.png)
Configure st-gcn environment record [Google lab]

读懂 互联网巨头 【中台之战】 以及 中台 发展思维

Unity基础(3)—— unity中的各种坐标系

Install the gym corresponding to mujoco in the spinning up tutorial, and the error mjpro150 is reported

UE 在场景或UMG中播放视频

Classes and objects (II)

MySQL - deep parsing of MySQL index data structure
随机推荐
Basic operation of queue
mujoco和mujoco_py安装以及解决libXcursor.so.1:NO such dictionary
Down sampling and up sampling
i++与++i详解
spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
Actual combat of flutter - DIO of request encapsulation (II)
在线教育的推荐系统
Won't you just stick to 62 days? Sum of words
Mujoco and mujoco_ Install libxcursor.so 1:NO such dictionary
ssm整合增删改查
Use of construction methods
Sequence list and linked list
Realize the effect of univariate quadratic equation through JS. Enter the coefficients of a, B and C to calculate the values of X1 and x2
MySQL - 深入解析MySQL索引数据结构
删除word文档中的空白页
Dasctf2022.07 empowerment competition
There are objections and puzzles about joinpoint in afterreturning notice (I hope someone will leave a message)
Simply change the picture color
14. Haproxy+kept load balancing and high availability
Exception handling: pyemd or pyemd not found