Add launch.json for debugging sample in vscode

This commit is contained in:
2023-03-17 00:14:28 +01:00
parent 770502c8e5
commit 1f4abade2c

30
sample/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,30 @@
{
// 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": "Launch sample",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/sample",
"args": [
"-f",
"glass"
],
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"stopAtEntry": false,
"cwd": "${workspaceRoot}/build/",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
}
]
}