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