From ddf1987b5061bd1cbc4dbb841979e364a343008a Mon Sep 17 00:00:00 2001 From: Joshua Strobl Date: Tue, 20 Apr 2021 05:35:32 +0300 Subject: [PATCH] Support custom launch configurations Added GDB and non-GDB Koto launching so I can stop using GNOME Builder. --- .vscode/launch.json | 50 +++++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 7 +++++++ 2 files changed, 57 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..dd20c46 --- /dev/null +++ b/.vscode/launch.json @@ -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" + }, + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 06c5717..a6886c0 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -13,6 +13,13 @@ ], "problemMatcher": [] }, + { + "label": "Meson Configure and Build", + "type": "shell", + "command": "", + "dependsOrder": "sequence", + "dependsOn": ["Meson Configure", "Meson Compile"] + }, { "label": "Meson Configure", "type": "shell",