diff --git a/README.md b/README.md index bb13d1a..ff2273f 100644 --- a/README.md +++ b/README.md @@ -1198,6 +1198,9 @@ Requires: } ``` +See the vscode-go docs for +[troubleshooting information](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#troubleshooting) + ## PHP This uses the php-debug, see diff --git a/python3/vimspector/gadgets.py b/python3/vimspector/gadgets.py index b024c2d..2ea6bbc 100644 --- a/python3/vimspector/gadgets.py +++ b/python3/vimspector/gadgets.py @@ -353,10 +353,10 @@ GADGETS = { 'v${version}/${file_name}' }, 'all': { - 'version': '0.17.2', - 'file_name': 'Go-0.17.2.vsix', + 'version': '0.18.1', + 'file_name': 'Go-0.18.1.vsix', 'checksum': - '69055b9b86387e2906f20cceb84ab2c4da86c5a5159395a7bbdb74ea3a0f982f', + '80d4522c6cf482cfa6141997e5b458034f67d7065d92e1ce24a0456c405d6061', }, 'adapters': { 'vscode-go': { diff --git a/support/test/go/hello_world/.vimspector.json b/support/test/go/hello_world/.vimspector.json index f320b1b..8ab5091 100644 --- a/support/test/go/hello_world/.vimspector.json +++ b/support/test/go/hello_world/.vimspector.json @@ -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" } + } } } }