From df65909610f265b11f6af7dc6cff0008f365801a Mon Sep 17 00:00:00 2001 From: Jibbajabbafic Date: Sun, 14 Jan 2024 22:12:48 +0000 Subject: [PATCH] feat(vscode): add debug targets --- .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..3da170d --- /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 'game_server_list'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=game_server_list" + ], + "filter": { + "name": "game_server_list", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'game_server_list'", + "cargo": { + "args": [ + "build", + "--bin=game_server_list", + "--package=game_server_list" + ], + "filter": { + "name": "game_server_list", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'game_server_list'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=game_server_list", + "--package=game_server_list" + ], + "filter": { + "name": "game_server_list", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file