1234567891011121314151617181920212223242526272829303132333435 |
- {
- // 使用 IntelliSense 了解相关属性。
- // 悬停以查看现有属性的描述。
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "name": "(gdb) 启动",
- "type": "cppdbg",
- "request": "launch",
- "program": "${workspaceFolder}\\tools\\bin\\${fileBasenameNoExtension}.exe",
- "args": ["${workspaceFolder}\\tools\\testcases\\config.json"],
- "stopAtEntry": true,
- "cwd": "${fileDirname}",
- "environment": [],
- "externalConsole": true,
- "MIMode": "gdb",
- "miDebuggerPath": "gdb.exe",
- "setupCommands": [
- {
- "description": "为 gdb 启用整齐打印",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- },
- {
- "description": "将反汇编风格设置为 Intel",
- "text": "-gdb-set disassembly-flavor intel",
- "ignoreFailures": true
- }
- ],
- "preLaunchTask": "C/C++: gcc.exe build active file" // 调试前的预执行任务,这里的值是tasks.json文件中对应的编译任务,也就是调试前需要先编译
- }
- ]
- }
|