8b4ccf9bd1
修复了在trap.c中设断点无效的问题; 修复了trap.c无法显示trap.h中的代码提示的问题。
45 lines
1.5 KiB
JSON
45 lines
1.5 KiB
JSON
{
|
|
// 使用 IntelliSense 了解相关属性。
|
|
// 悬停以查看现有属性的描述。
|
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "(gdb) 启动",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "bin/kernel",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"preLaunchTask": "make gdb",
|
|
"postDebugTask": "shutdown gdb",
|
|
"miDebuggerServerAddress": "localhost:1234",
|
|
"setupCommands": [
|
|
{
|
|
"description": "为 gdb 启用整齐打印",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "将反汇编风格设置为 Intel",
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "Replay",
|
|
"type": "lldb",
|
|
"request": "custom",
|
|
"targetCreateCommands": [],
|
|
"processCreateCommands": ["gdb-remote 127.0.0.1:1234"],
|
|
"reverseDebugging": true
|
|
},
|
|
|
|
]
|
|
} |