add vscode debug config

This commit is contained in:
LuChiChick 2025-08-07 15:59:32 +08:00
parent 3322c4cdda
commit 7aeb470d0c
3 changed files with 60 additions and 0 deletions

19
.vscode/c_cpp_properties.json vendored Normal file
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
.vscode/launch.json vendored Normal file
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
.vscode/tasks.json vendored Normal file
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"
}