How to show the entire value in VSCode debug mode

You can configure delve in the vscode settings.json.

There is a parameter called “maxStringLen” you can set it to a higher value.
I do not recommend setting the values to high. The debugger can get very slow if you set the maxStringLen, maxArrayValues, etc. to high. So if you play arround with these delve settings and your debugger gets slow, better chose lower values again.

Here is an example showing maxStringLen and some other possible values:

"go.delveConfig": {
    "useApiV1": false,
    "dlvLoadConfig": {
        "followPointers": true,
        "maxVariableRecurse": 3,
        "maxStringLen": 400,
        "maxArrayValues": 400,
        "maxStructFields": -1
    }
}

Leave a Comment

tech