mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
chore: doc update for Delve config
Add an extra section to show how to configure Delve for VS Code(expand limits)
This commit is contained in:
parent
f0558bbb8c
commit
ee25365ee7
|
@ -123,6 +123,26 @@ Once the extensions are installed:
|
||||||
- Debug can be started by hitting F5.
|
- Debug can be started by hitting F5.
|
||||||
- All tests can be run using the Test explorer.
|
- All tests can be run using the Test explorer.
|
||||||
|
|
||||||
|
### Extra tips
|
||||||
|
|
||||||
|
#### Configure Delve in VS Code
|
||||||
|
|
||||||
|
[Delve](https://github.com/go-delve/delve) config is restrictive by default(string limit especially). You can expand some limits in VS Code(`settings.json` or directly in `launch.json`):
|
||||||
|
```
|
||||||
|
"go.delveConfig": {
|
||||||
|
|
||||||
|
"dlvLoadConfig": {
|
||||||
|
"followPointers": true,
|
||||||
|
"maxVariableRecurse": 3,
|
||||||
|
"maxStringLen": 400,
|
||||||
|
"maxArrayValues": 400,
|
||||||
|
"maxStructFields": -1
|
||||||
|
},
|
||||||
|
"apiVersion": 2,
|
||||||
|
"showGlobalVariables": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Up Next
|
## Up Next
|
||||||
|
|
||||||
With everything set up, you're ready to start making changes and create your first [PR][gh-pr]!
|
With everything set up, you're ready to start making changes and create your first [PR][gh-pr]!
|
||||||
|
|
Loading…
Reference in a new issue