106 lines
3.7 KiB
JSON
106 lines
3.7 KiB
JSON
|
{
|
||
|
"version": "0.2.0",
|
||
|
"configurations": [
|
||
|
{
|
||
|
"name": "(gdb) Launch",
|
||
|
"type": "cppdbg",
|
||
|
"request": "launch",
|
||
|
"program": "C:\\Windows\\system32\\cmd.exe",
|
||
|
"args": [
|
||
|
"/C",
|
||
|
"${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe",
|
||
|
"&",
|
||
|
"pause"
|
||
|
],
|
||
|
"stopAtEntry": false,
|
||
|
"cwd": "${workspaceFolder}",
|
||
|
"environment": [],
|
||
|
"externalConsole": true,
|
||
|
"internalConsoleOptions": "neverOpen",
|
||
|
"MIMode": "gdb",
|
||
|
"miDebuggerPath": "gdb.exe",
|
||
|
"setupCommands": [
|
||
|
{
|
||
|
"description": "Enable pretty-printing for gdb",
|
||
|
"text": "-enable-pretty-printing",
|
||
|
"ignoreFailures": false
|
||
|
}
|
||
|
],
|
||
|
"preLaunchTask": "Compile"
|
||
|
},
|
||
|
{
|
||
|
"name": "(gdb) Debug",
|
||
|
"type": "cppdbg",
|
||
|
"request": "launch",
|
||
|
"program": "${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe",
|
||
|
"args": [],
|
||
|
"stopAtEntry": false,
|
||
|
"cwd": "${workspaceFolder}",
|
||
|
"environment": [],
|
||
|
"externalConsole": false,
|
||
|
"internalConsoleOptions": "neverOpen",
|
||
|
"MIMode": "gdb",
|
||
|
"miDebuggerPath": "gdb.exe",
|
||
|
"setupCommands": [
|
||
|
{
|
||
|
"description": "Enable pretty-printing for gdb",
|
||
|
"text": "-enable-pretty-printing",
|
||
|
"ignoreFailures": false
|
||
|
}
|
||
|
],
|
||
|
"preLaunchTask": "Compile"
|
||
|
},
|
||
|
{
|
||
|
"name": "C/C++: g++.exe 生成和调试活动文件",
|
||
|
"type": "cppdbg",
|
||
|
"request": "launch",
|
||
|
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
|
||
|
"args": [],
|
||
|
"stopAtEntry": false,
|
||
|
"cwd": "${fileDirname}",
|
||
|
"environment": [],
|
||
|
"externalConsole": false,
|
||
|
"MIMode": "gdb",
|
||
|
"miDebuggerPath": "D:\\mingw64\\bin\\gdb.exe",
|
||
|
"setupCommands": [
|
||
|
{
|
||
|
"description": "为 gdb 启用整齐打印",
|
||
|
"text": "-enable-pretty-printing",
|
||
|
"ignoreFailures": true
|
||
|
},
|
||
|
{
|
||
|
"description": "将反汇编风格设置为 Intel",
|
||
|
"text": "-gdb-set disassembly-flavor intel",
|
||
|
"ignoreFailures": true
|
||
|
}
|
||
|
],
|
||
|
"preLaunchTask": "C/C++: g++.exe 生成活动文件"
|
||
|
},
|
||
|
{
|
||
|
"name": "C/C++: gcc.exe 生成和调试活动文件",
|
||
|
"type": "cppdbg",
|
||
|
"request": "launch",
|
||
|
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
|
||
|
"args": [],
|
||
|
"stopAtEntry": false,
|
||
|
"cwd": "${fileDirname}",
|
||
|
"environment": [],
|
||
|
"externalConsole": false,
|
||
|
"MIMode": "gdb",
|
||
|
"miDebuggerPath": "D:\\mingw64\\bin\\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 生成活动文件"
|
||
|
}
|
||
|
]
|
||
|
}
|