mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
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:
parent
5d5e24a48e
commit
28d12e4e5d
1 changed files with 9 additions and 0 deletions
9
.vscode/launch.json
vendored
9
.vscode/launch.json
vendored
|
@ -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": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue