This commit is contained in:
Downright
2025-03-26 11:39:29 +08:00
parent 9bea0879e0
commit 1322ed8e08
3 changed files with 125 additions and 0 deletions

25
.vscode/launch.json vendored Normal file
View 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 路径(默认通常正确)
}
]
}