summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorMoritz Haase <Moritz.Haase@bmw.de>2022-03-15 07:47:20 +0100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-15 19:42:52 +1100
commit91dab7fef9cffaead9925d22bfb18b1f6c73aa2c (patch)
tree3298ab3589cb6045042ffa8cc2cd1a525d57413e /CONTRIBUTING.md
parent75e654634f67ceaeb9be790af51c1c4fe758d260 (diff)
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
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 71c43a3bf..a1a4a3ea7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -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
}
]