You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.4 KiB
72 lines
2.4 KiB
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "C++ Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceRoot}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
],
|
|
"program": "${workspaceRoot}/bin/${workspaceFolderBasename}_debug"
|
|
},
|
|
"osx": {
|
|
"MIMode": "lldb",
|
|
"program": "${workspaceRoot}/bin/${workspaceFolderBasename}_debug.app/Contents/MacOS/${workspaceFolderBasename}_debug"
|
|
},
|
|
"windows": {
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "gdb.exe",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
],
|
|
"program": "${workspaceRoot}/bin/${workspaceFolderBasename}_debug"
|
|
}
|
|
},
|
|
{
|
|
"name": "C++ Attach",
|
|
"type": "cppdbg",
|
|
"request": "attach",
|
|
"program": "enter program name, for example ${workspaceRoot}/a.out",
|
|
"processId": "${command:pickProcess}",
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
"osx": {
|
|
"MIMode": "lldb"
|
|
},
|
|
"windows": {
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|