feat: use basename var in vscode debug

Removes the need to specify the current day in
  `launch.json`, simply starting the debugger in the
  current file will work.
This commit is contained in:
cormochamelion 2024-12-03 11:23:04 +01:00
parent a50047ab0d
commit d4e43f0d17

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