From 5f06804eea53980e3cf2ea1665af715098f83592 Mon Sep 17 00:00:00 2001 From: Jeremy Attali Date: Sun, 29 Dec 2019 12:37:48 -0500 Subject: [PATCH] chore(code): add file launcher --- .vscode/launch.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 7cca8ba..49fb65b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Swappy", + "name": "swappy - geometry", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/build/meson-out/swappy", @@ -27,6 +27,30 @@ "ignoreFailures": true } ] + }, + { + "name": "swappy - file", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/meson-out/swappy", + "args": ["-f", "docs/images/screenshot.png"], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [ + { + "name": "G_MESSAGES_DEBUG", + "value": "all" + } + ], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] } ] }