feat: use basename var in vscode debug (#69)
removes the need to specify the current day in `launch.json`
This commit is contained in:
parent
a50047ab0d
commit
36608db7b3
1 changed files with 8 additions and 4 deletions
12
.vscode/launch.json
vendored
12
.vscode/launch.json
vendored
|
@ -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"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue