Debugging with visual studio

39 views
Skip to first unread message

Emma

unread,
Jun 3, 2020, 12:13:33 AM6/3/20
to Consul
Dear All,

I am running the agent locally on development mode, using Visual Studio . Getting this output:'can't load package: package .: no Go files in /Users/Emma/go/src/github.com/hashicorp/consul/.vscode .

Any suggestions?

Thanks.


Emma

unread,
Jun 4, 2020, 12:48:18 AM6/4/20
to Consul
 Attached the  VS launch.json configuration:

"version": "0.2.0",
"configurations": [

{
"name": "Launch file",
"type": "go",
"request": "launch",
"remotePath":"${workspaceFolder}",
"mode": "remote",
"port":2345,
"host":"127.0.0.1",
"program": "${workspaceFolder}"
},

]

When I start or quit the agent on command line, it's not debugging into some of the go files, such as leave.go .

Any suggestions help.

Warms,
Em
Reply all
Reply to author
Forward
0 new messages