gdb json
This commit is contained in:
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug sysyc with GDB",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/bin/sysyc", // 可执行文件路径
|
||||
"args": ["-s", "ir", "test/01_add.sy"], // 默认参数(可替换)
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}", // 工作目录
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb", // 使用 GDB
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"miDebuggerPath": "/usr/bin/gdb" // GDB 路径(默认通常正确)
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user