Skip to content

Instantly share code, notes, and snippets.

@killedbymemory
Last active August 30, 2021 09:45
Show Gist options
  • Save killedbymemory/4d2aaf8ff3ae68cfa2b8ea1957d3dcd4 to your computer and use it in GitHub Desktop.
Save killedbymemory/4d2aaf8ff3ae68cfa2b8ea1957d3dcd4 to your computer and use it in GitHub Desktop.
VSCode launch json for Go remote debugging
{
"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"
},
]
}
@killedbymemory
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment