diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-09-09 14:00:48 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-09-10 11:47:25 +0200 |
commit | 28d12e4e5d72f087d23544de44b2af87d59bab95 (patch) | |
tree | 26847bcd73740f65ad0ee99ff8b46cb92ebb9cca | |
parent | 5d5e24a48ea8a62f9cfa3e1405124e7a164e10f9 (diff) |
Add debug configuration to attach to a running lazygit process
I often find it more convenient to start a lazygit process in a terminal window
and then attach to it, rather than have VS Code launch one for me.
Note that this doesn't work with "go run main.go". It does work with "make run",
however.
Make sure there's only one lazygit process running, otherwise VS Code will open
a chooser with all the running processes to pick one from, but it's pretty much
impossible to tell which is which.
-rw-r--r-- | .vscode/launch.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 26d682ff6..df6e0ce80 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -32,6 +32,15 @@ "hidden": true } }, + { + "name": "Attach to a running Lazygit", + "type": "go", + "request": "attach", + "mode": "local", + "processId": "lazygit", + "hideSystemGoroutines": true, + "console": "integratedTerminal", + }, ], "compounds": [ { |