Skip to content

Commit

Permalink
feat: use basename var in vscode debug (#69)
Browse files Browse the repository at this point in the history
removes the need to specify the current day in `launch.json`
  • Loading branch information
Cormochamelion authored Dec 3, 2024
1 parent a50047a commit 36608db
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
},
Expand All @@ -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"
],
},
Expand Down

0 comments on commit 36608db

Please sign in to comment.