49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
// 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) main debug",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/build/orderly",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"preLaunchTask": "cmake main debug",
|
|
"setupCommands": [
|
|
{
|
|
"description": "为 gdb 启用整齐打印",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "(gdb) gtest bug",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"preLaunchTask": "cmake test debug",
|
|
"setupCommands": [
|
|
{
|
|
"description": "为 gdb 启用整齐打印",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |