Last active
August 30, 2021 09:45
-
-
Save killedbymemory/4d2aaf8ff3ae68cfa2b8ea1957d3dcd4 to your computer and use it in GitHub Desktop.
VSCode launch json for Go remote debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Build and debug a test", | |
"type": "go", | |
"request": "launch", | |
"mode": "test", | |
"remotePath": "", | |
"port": 2345, | |
"host": "127.0.0.1", | |
"program": "${file}", | |
"env": {}, | |
"args": [], | |
"showLog": true | |
}, | |
{ | |
"name": "Build and debug", | |
"type": "go", | |
"request": "launch", | |
"mode": "auto", | |
"remotePath": "", | |
"port": 2345, | |
"host": "127.0.0.1", | |
"program": "${fileDirname}", | |
"env": {}, | |
"args": [], | |
"showLog": true, | |
"debugAdapter": "legacy" | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md