123456789101112131415161718192021222324252627282930 |
- {
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "name": "(gdb) Launch",
- "preLaunchTask": "g++.exe build active file",//调试前执行的任务,就是之前配置的tasks.json中的label字段
- "type": "cppdbg",//配置类型,只能为cppdbg
- "request": "launch",//请求配置类型,可以为launch(启动)或attach(附加)
- "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",//调试程序的路径名称
- "args": [],//调试传递参数
- "stopAtEntry": false,
- "cwd": "${workspaceFolder}",
- "environment": [],
- "externalConsole": true,//true显示外置的控制台窗口,false显示内置终端
- "MIMode": "gdb",
- "miDebuggerPath": "D:\\mingw-w64\\mingw64\\bin\\gdb.exe",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- }
- ]
- }
- ]
- }
|