Support custom launch configurations
Added GDB and non-GDB Koto launching so I can stop using GNOME Builder.
This commit is contained in:
parent
f2164b2ade
commit
ddf1987b50
2 changed files with 57 additions and 0 deletions
50
.vscode/launch.json
vendored
Normal file
50
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{
|
||||||
|
// 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 (GDB)",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/builddir/src/com.github.joshstrobl.koto",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [
|
||||||
|
{"name" : "G_MESSAGES_DEBUG", "value": "all" },
|
||||||
|
{ "name": "GTK_THEME", "value": "Default:dark" }
|
||||||
|
],
|
||||||
|
"externalConsole": false,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preLaunchTask": "Meson Configure and Build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/builddir/src/com.github.joshstrobl.koto",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [
|
||||||
|
{"name" : "G_MESSAGES_DEBUG", "value": "all" },
|
||||||
|
{ "name": "GTK_THEME", "value": "Default:dark" }
|
||||||
|
],
|
||||||
|
"externalConsole": false,
|
||||||
|
"linux": {
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": ""
|
||||||
|
},
|
||||||
|
"preLaunchTask": "Meson Configure and Build"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
7
.vscode/tasks.json
vendored
7
.vscode/tasks.json
vendored
|
@ -13,6 +13,13 @@
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Meson Configure and Build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "",
|
||||||
|
"dependsOrder": "sequence",
|
||||||
|
"dependsOn": ["Meson Configure", "Meson Compile"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Meson Configure",
|
"label": "Meson Configure",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue