{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "projectname",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/main.go",
"env": {
"name1":"value1",
"name2":"value2"
},
"args": ["-name1=value1","-name2=value2"],
"dlvLoadConfig": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 1024, //debug 值显示不全可以设置大一点
"maxArrayValues": 64,
"maxStructFields": -1
}
},
]
}