From 528f866311bc29da82d132dd4e77ddc1bae6fb3c Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 18 Apr 2023 11:04:40 +0100 Subject: [PATCH] Add vscode debug launch configurations --- .vscode/launch.json | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..fb54382 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,51 @@ +{ + // 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 executable 'voxel-rs'", + "cargo": { + "args": [ + "build", + "--bin=voxel-rs", + "--package=voxel-rs" + ], + "filter": { + "name": "voxel-rs", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}", + "env": { + "RUST_LOG": "info" + } + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'voxel-rs'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=voxel-rs", + "--package=voxel-rs" + ], + "filter": { + "name": "voxel-rs", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}", + "env": { + "RUST_LOG": "info" + } + } + ] +} \ No newline at end of file