Add VS Code debug launch

This commit is contained in:
Aoran Zeng
2025-06-18 22:21:33 +08:00
parent f312dd3b8d
commit 211e98cce1
3 changed files with 52 additions and 0 deletions

34
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,34 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "开始Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/chsrc-debug",
"args": [
"get",
"python"
],
"preLaunchTask": "构建 debug 版 chsrc",
"stopAtEntry": true,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
// "miDebuggerPath": "/path/to/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}