From 36608db7b31ad78b5278b2a0c72870e284c1e45f Mon Sep 17 00:00:00 2001 From: Jonas <70096814+Cormochamelion@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:48:35 +0100 Subject: [PATCH] feat: use basename var in vscode debug (#69) removes the need to specify the current day in `launch.json` --- .vscode/launch.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8f244cf..2aa7026 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" ], },