2
VSCode: Debugging Attached Process does not work
(lemmy.world)
If you modify your ./vs code/launch.json to include the "console": "external terminal"
parameter, it will accomplish what you are looking for.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch file",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/main.go",
"console": "externalTerminal",
},
]
}
"console": "integratedTerminal"
also works! Thank you?
Do you have a simple setup guide on how to get debugging to work with Go inside a docker container?