feat: use basename var in vscode debug (#69)
removes the need to specify the current day in `launch.json`
This commit is contained in:
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"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user