Open f4nyc opened 4 years ago
As per https://github.com/microsoft/vscode-go/issues/1854 you are supposed to pass delve settings to the adapter. In any case, this is not something specific to dap-mode but the golang debug adapter.
Oh, I see . So I just need to check the problem in my ms-vscode.go configuration file. Thx !
I just copied the extension from vscode where globals are displayed normally. Still not globals. Should I add some delve settings to dap template? But my template is basically the same as launch.json
(dap-register-debug-template
"Launch File"
(list :type "go"
:request "launch"
:name "Launch File"
:mode "auto"
:program nil
:buildFlags nil
:args nil
:env nil
:envFile nil))
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"env": {},
"args": []
}
]
}
Can you still reproduce? This should be a server-side issue.
Can you still reproduce? This should be a server-side issue.
yep , I can still reproduce, and this is log via setting dap-print-io to t.
Sending:
{
"command": "variables",
"arguments": {
"variablesReference": 1000
},
"type": "request",
"seq": 15
}
Received:
{
"body": {
"variables": [
{
"variablesReference": 0,
"evaluateName": "str1",
"value": "\"word\"",
"name": "str1"
}
]
},
"success": true,
"command": "variables",
"request_seq": 15,
"type": "response",
"seq": 19
}
Can you still reproduce? This should be a server-side issue.
My Delve is lastest version 1.5.0 , and vscode extension is 0.15.0 set by dap-mode.
Description :octocat: Using wonderful dap-mode with spacemacs, typed
M-x
dap-ui-locals
and got this I wonder if there are any specific setting steps to display globals? Thanks for your help!