add vscode debug config
This commit is contained in:
parent
3322c4cdda
commit
7aeb470d0c
19
.vscode/c_cpp_properties.json
vendored
Normal file
19
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Win32",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/Inc",
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
"defines": [
|
||||||
|
"UNICODE",
|
||||||
|
"_UNICODE"
|
||||||
|
],
|
||||||
|
"cStandard": "c17",
|
||||||
|
"cppStandard": "c++17",
|
||||||
|
"intelliSenseMode": "windows-gcc-x64"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "[SrcToA2L]构建并调试",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "project_build_task", // 预构建脚本
|
||||||
|
"program": "${workspaceFolder}\\Build\\SrcToA2L.exe", // 调试目标
|
||||||
|
"args": [ // 附加参数
|
||||||
|
".\\Test\\typedef.h",
|
||||||
|
".\\Inc\\Type_Descriptions.hpp",
|
||||||
|
".\\Test\\input.c",
|
||||||
|
"-r",
|
||||||
|
".\\Test\\PVER.a2l",
|
||||||
|
"-m",
|
||||||
|
".\\Test\\PVER.map",
|
||||||
|
],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}", // 工作目录
|
||||||
|
"environment": [],
|
||||||
|
// "console": "externalTerminal",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
16
.vscode/tasks.json
vendored
Normal file
16
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "project_build_task", //定义的Task标签
|
||||||
|
"type": "shell", //Task执行的类型
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}" // 工作目录
|
||||||
|
},
|
||||||
|
"command": "make", //运行的命令
|
||||||
|
"args": [
|
||||||
|
"-j4" // 附加参数
|
||||||
|
],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": "2.0.0"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user