mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-03 13:21:56 +02:00
docs: Update 'VS Code launch configuration' in contribution guide
To simplify debugging via VS Code, add '--debug' argument to example launch configuration. Also, reword the hint regarding the 'console' key slightly. It has apparently been available for a long time in stable releases and is also listed in the documentation. It is however, still marked as an experimental feature, even in the current release v1.65.2. See: https://code.visualstudio.com/updates/v1_5#_launch-debug-target-in-integrated-terminal See: https://code.visualstudio.com/Docs/editor/debugging#_launchjson-attributes
This commit is contained in:
parent
75e654634f
commit
91dab7fef9
@ -64,7 +64,7 @@ If you find that the existing logs are too noisy, you can set the log level with
|
||||
|
||||
If you keep having to do some setup steps to reproduce an issue, read the Testing section below to see how to create an integration test by recording a lazygit session. It's pretty easy!
|
||||
|
||||
If you want to trigger a debug session from VSCode, you can use the following snippet. Note that the 'console' key is not, at the time of writing, in a stable release.
|
||||
If you want to trigger a debug session from VSCode, you can use the following snippet. Note that the `console` key is, at the time of writing, still an experimental feature.
|
||||
|
||||
```jsonc
|
||||
// .vscode/launch.json
|
||||
@ -77,6 +77,9 @@ If you want to trigger a debug session from VSCode, you can use the following sn
|
||||
"request": "launch",
|
||||
"mode": "auto",
|
||||
"program": "main.go",
|
||||
"args": [
|
||||
"--debug"
|
||||
],
|
||||
"console": "externalTerminal" // <-- you need this to actually see the lazygit UI in a window while debugging
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user