From 7e7a192ff776bade49ad9390087b4b038b614c05 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 8 Aug 2021 11:08:33 -0400 Subject: [PATCH] add vscode debug launchers --- .vscode/launch.json | 64 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ba0eca5 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,64 @@ +{ + // 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": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'steamguard'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=steamguard" + ], + "filter": { + "name": "steamguard", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'steamguard-cli'", + "cargo": { + "args": [ + "build", + "--bin=steamguard-cli", + "--package=steamguard-cli" + ], + "filter": { + "name": "steamguard-cli", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'steamguard-cli'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=steamguard-cli", + "--package=steamguard-cli" + ], + "filter": { + "name": "steamguard-cli", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file