2022-05-17 13:38:37 +02:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
2022-05-17 14:14:24 +02:00
|
|
|
"name": "Debug Lazygit",
|
2022-05-17 13:38:37 +02:00
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "main.go",
|
2023-09-09 13:42:27 +02:00
|
|
|
"args": [
|
|
|
|
"--debug",
|
|
|
|
"--use-config-file=${workspaceFolder}/.vscode/debugger_config.yml"
|
|
|
|
],
|
2023-09-09 14:00:09 +02:00
|
|
|
"hideSystemGoroutines": true,
|
2022-05-17 14:14:24 +02:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Tail Lazygit logs",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "main.go",
|
2023-09-09 13:42:27 +02:00
|
|
|
"args": [
|
|
|
|
"--logs",
|
|
|
|
"--use-config-file=${workspaceFolder}/.vscode/debugger_config.yml"
|
|
|
|
],
|
2022-05-17 14:14:24 +02:00
|
|
|
"console": "integratedTerminal",
|
2023-09-09 13:42:27 +02:00
|
|
|
},
|
2023-09-09 14:00:48 +02:00
|
|
|
{
|
|
|
|
"name": "Attach to a running Lazygit",
|
|
|
|
"type": "go",
|
|
|
|
"request": "attach",
|
|
|
|
"mode": "local",
|
|
|
|
"processId": "lazygit",
|
|
|
|
"hideSystemGoroutines": true,
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
},
|
2023-09-09 15:00:58 +02:00
|
|
|
{
|
|
|
|
// To use this, first start an integration test with the "cli" runner and
|
|
|
|
// use the -debug option; e.g.
|
|
|
|
// $ make integration-test-cli -- -debug tag/reset.go
|
|
|
|
"name": "Attach to integration test runner",
|
|
|
|
"type": "go",
|
|
|
|
"request": "attach",
|
|
|
|
"mode": "local",
|
|
|
|
"processId": "test_lazygit",
|
|
|
|
"hideSystemGoroutines": true,
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
},
|
2022-05-17 14:14:24 +02:00
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
|
|
|
"name": "Run with logs",
|
2023-09-09 13:42:27 +02:00
|
|
|
"configurations": [
|
|
|
|
"Tail Lazygit logs",
|
|
|
|
"Debug Lazygit"
|
|
|
|
],
|
2022-05-17 14:14:24 +02:00
|
|
|
"stopAll": true
|
2022-05-17 13:38:37 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|