76 lines
2.8 KiB
JSON
76 lines
2.8 KiB
JSON
{
|
|
// 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": [
|
|
// this config bypasses waiting for debugger attachment, increasing speed
|
|
{
|
|
"name": "Quick Launch (nix-shell)",
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"command": "nix-shell --run 'cargo run --features dev'",
|
|
},
|
|
{
|
|
"command": "steam-run ./target/debug/ttt_ce",
|
|
"name": "Run compiled (steam-run)",
|
|
"request": "launch",
|
|
"type": "node-terminal"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug",
|
|
"cargo": {
|
|
"args": [
|
|
"build",
|
|
"--bin=ttt_ce",
|
|
"--package=ttt_ce",
|
|
"--features",
|
|
"dev"
|
|
],
|
|
"filter": {
|
|
"name": "ttt_ce",
|
|
"kind": "bin"
|
|
},
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
|
|
},
|
|
"linux": {
|
|
"env": {
|
|
// platform-specific launch config overwrites (rather than merges with) existing config, so need to specify CARGO_MANIFEST_DIR again
|
|
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
|
|
"LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${workspaceFolder}/target/debug:${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
"--bin=ttt_ce",
|
|
"--package=ttt_ce",
|
|
"--features",
|
|
"dev"
|
|
],
|
|
"filter": {
|
|
"name": "ttt_ce",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
|
|
"LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${workspaceFolder}/target/debug:${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib"
|
|
}
|
|
}
|
|
]
|
|
}
|