Answer the question
In order to leave comments, you need to log in
Visual Studio Code not working Golang debugging (WSL Ubuntu)?
Hello, I have a problem with the Golang debugger in Visual Studio Code.
Set up environment variable:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}",
"port": 2345,
"host": "127.0.0.1",
"env": {},
"args": []
}
]
API server listening at: 127.0.0.1:2345
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question