diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-05-17 22:14:24 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-05-17 22:14:24 +1000 |
commit | e28d1334e9ef666bb238f2303ada100eca8d3f21 (patch) | |
tree | ed6484e9529902b429cc1482591b4e07e420784e /.vscode/launch.json | |
parent | 6e29830f6342ef75ce57664ee9df16694312efc2 (diff) |
better debug setup
Diffstat (limited to '.vscode/launch.json')
-rw-r--r-- | .vscode/launch.json | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index d65563396..a39309429 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 } ] } |