Add vscode debug launch configurations

This commit is contained in:
Jarrod Doyle 2023-04-18 11:04:40 +01:00
parent 519111d744
commit 528f866311
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 51 additions and 0 deletions

51
.vscode/launch.json vendored Normal file
View File

@ -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"
}
}
]
}