1234567891011121314151617181920212223242526272829303132 |
- {
- // 使用 IntelliSense 了解相关属性。
- // 悬停以查看现有属性的描述。
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "name": "(gdb) Launch",
- "type": "cppdbg",
- "request": "launch",
- "program": "${workspaceRoot}/out/${fileBasenameNoExtension}",
- // 此处若可执行文件不想放在一个文件夹中,则把 /out 删去即可
- "args": [],
- "stopAtEntry": false,
- "cwd": "${workspaceRoot}",
- // 此处${workspaceRoot}与${workspaceFolder}应该类似,但网上资料大部分用的前者
- "environment": [],
- "externalConsole": false,
- "MIMode": "gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- }
- ],
- "preLaunchTask": "C/C++: g++ build active file",
- // 此处要与tasks.json中的label相同
- "miDebuggerPath": "/usr/bin/gdb"
- }
- ]
- }
|