Where is the rest of my string?

Problem:

I can’t see the entire string when debugging Go code when using VS Code.

clip_image002

Solution:

Add the following to your settings.json.

"go.delveConfig": {
   "dlvLoadConfig": {
      "followPointers": true,
      "maxVariableRecurse": 1,
      "maxStringLen": 1024,
      "maxArrayValues": 64,
      "maxStructFields": -1
   },
   "apiVersion": 2,
},

Add comment

Loading