summaryrefslogtreecommitdiffstats
path: root/.vscode
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-09-09 15:00:58 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-11 08:17:58 +0200
commitb6c892a08a29527211304b1558c2e584aa2e0cea (patch)
tree0899f8c321f14006a3b888ede6d4a7d66476301a /.vscode
parent28d12e4e5d72f087d23544de44b2af87d59bab95 (diff)
Provide a simple way to debug an integration test
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index df6e0ce80..4e05edffb 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -41,6 +41,18 @@
"hideSystemGoroutines": true,
"console": "integratedTerminal",
},
+ {
+ // To use this, first start an integration test with the "cli" runner and
+ // use the -debug option; e.g.
+ // $ make integration-test-cli -- -debug tag/reset.go
+ "name": "Attach to integration test runner",
+ "type": "go",
+ "request": "attach",
+ "mode": "local",
+ "processId": "test_lazygit",
+ "hideSystemGoroutines": true,
+ "console": "integratedTerminal",
+ },
],
"compounds": [
{