Update vscode-go to latest version
This commit is contained in:
parent
48e075624a
commit
87ce1734ea
3 changed files with 21 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
"configurations": {
|
||||
"run": {
|
||||
"adapter": "vscode-go",
|
||||
"default": true,
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/hello-world.go",
|
||||
|
|
@ -10,6 +11,20 @@
|
|||
"trace": true,
|
||||
"env": { "GO111MODULE": "off" }
|
||||
}
|
||||
},
|
||||
"run-exec": {
|
||||
// NOTE: To use this you _must_ disable optimistaion:
|
||||
// go build -o hello_world -gcflags="all=-N -l"
|
||||
// https://github.com/golang/vscode-go/blob/master/docs/debugging.md#troubleshooting
|
||||
"adapter": "vscode-go",
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/hello-world",
|
||||
"mode": "exec",
|
||||
"dlvToolPath": "$HOME/go/bin/dlv",
|
||||
"trace": true,
|
||||
"env": { "GO111MODULE": "off" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue