1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-03 15:02:52 +02:00

better debug setup

This commit is contained in:
Jesse Duffield 2022-05-17 22:14:24 +10:00
parent 6e29830f63
commit e28d1334e9
2 changed files with 26 additions and 3 deletions

1
.vscode/debugger_config.yml vendored Normal file
View File

@ -0,0 +1 @@
disableStartupPopups: true

28
.vscode/launch.json vendored
View File

@ -2,13 +2,35 @@
"version": "0.2.0",
"configurations": [
{
"name": "debug lazygit",
"name": "Debug Lazygit",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "main.go",
"args": ["--debug"],
"console": "integratedTerminal" // <-- you need this to actually see the lazygit UI in a window while debugging
"args": ["--debug", "--use-config-file=.vscode/debugger_config.yml"],
"console": "integratedTerminal",
"presentation": {
"hidden": true
}
},
{
"name": "Tail Lazygit logs",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "main.go",
"args": ["--logs", "--use-config-file=.vscode/debugger_config.yml"],
"console": "integratedTerminal",
"presentation": {
"hidden": true
}
}
],
"compounds": [
{
"name": "Run with logs",
"configurations": ["Tail Lazygit logs", "Debug Lazygit"],
"stopAll": true
}
]
}