From a548569c3e7ba24c15dc8f17ac599234f6d4dc66 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Sat, 13 Jul 2024 21:20:46 -0700 Subject: [PATCH] Add debug launch configuration --- .vscode/launch.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0cd2818 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch main", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/cmd/web/main.go" + }, + { + "name": "Launch test function", + "type": "go", + "request": "launch", + "mode": "test", + "program": "${workspaceFolder}/pkg", + "args": [ + "-test.run", + "FindAllSubStr" + ] + }, + { + "name": "Test Current File", + "type": "go", + "request": "launch", + "mode": "test", + "program": "./${relativeFileDirname}", + "showLog": true + } + ] +}