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.
This commit is contained in:
Stefan Haller 2023-09-09 14:00:48 +02:00
parent 5d5e24a48e
commit 28d12e4e5d

9
.vscode/launch.json vendored
View file

@ -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": [
{