add debug configuration for VSCode

This commit is contained in:
James Thistlewood 2020-02-08 09:52:41 +00:00
parent 10cde4d6ff
commit 88b8e4e949
2 changed files with 29 additions and 0 deletions

View file

@ -40,6 +40,7 @@
"${workspaceFolder}/share/",
"${workspaceFolder}/synthesizer/",
"${workspaceFolder}/test/",
"${workspaceFolder}/telemetry/",
"${workspaceFolder}/thirdparty/",
"${workspaceFolder}/vtest/",
"${workspaceFolder}/zerberus/",

28
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,28 @@
{
// 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 debug from debug build",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build.debug/main/mscore",
"args": ["-d"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"miDebuggerPath": "/usr/bin/gdb"
}
]
}