feat: use basename var in vscode debug (#69)

removes the need to specify the current day in `launch.json`
This commit is contained in:
Jonas
2024-12-03 11:48:35 +01:00
committed by GitHub
parent a50047ab0d
commit 36608db7b3

12
.vscode/launch.json vendored
View File

@@ -12,8 +12,10 @@
"args": [ "args": [
"test", "test",
"--no-run", "--no-run",
// replace `01` here with the solution you like to debug. // replace with binary name (e.g. "01") here if you always
"--bin=01", // want to debug one file regardless of the active file in
// the editor.
"--bin=${fileBasenameNoExtension}",
"--package=advent_of_code" "--package=advent_of_code"
], ],
}, },
@@ -27,8 +29,10 @@
"cargo": { "cargo": {
"args": [ "args": [
"build", "build",
// replace `01` here with the solution you like to debug. // replace with binary name (e.g. "01") here if you always
"--bin=01", // want to debug one file regardless of the active file in
// the editor
"--bin=${fileBasenameNoExtension}",
"--package=advent_of_code" "--package=advent_of_code"
], ],
}, },