Replies: 1 comment
-
|
Closing this as I opened an issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I hope I've just misconfigured something, but my debugging sessions respect breakpoints but does not show stdout. I am just using a toy example pasted below to reproduce.
System info:
dockerfile.debug
tasks.json
{ "version": "2.0.0", "tasks": [ { "command": "docker build ${workspaceFolder}/api -t test-api-debug -f ${workspaceFolder}/api/dockerfile.debug", "label": "api-debugging-container-build", "type": "shell" }, { "command": "docker run -d -p 8001:8001 -p 4001:4001 test-api-debug", "dependsOn": [ "api-debugging-container-build" ], "label": "api-debugging-container-up", "type": "shell" }, { "command": "docker stop $(docker ps -a -q --filter ancestor=test-api-debug) && docker rm $(docker ps -a -q --filter ancestor=test-api-debug)", "label": "api-debugging-container-down", "type": "shell" } ], }launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Docker Debug", "type": "go", "debugAdapter": "dlv-dap", "request": "attach", "mode": "remote", "port": 4001, "showLog": true, "preLaunchTask": "api-debugging-container-up", "postDebugTask": "api-debugging-container-down", "substitutePath": [ { "from": "${workspaceFolder}/api", "to": "/app" }, ], }, ] }./api/cmd/api.go
Beta Was this translation helpful? Give feedback.
All reactions