add vscode debug config

This commit is contained in:
2025-08-07 15:59:32 +08:00
parent 3322c4cdda
commit 7aeb470d0c
3 changed files with 60 additions and 0 deletions
+19
View 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
View 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
View 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"
}