-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Remote Debugging via delve #19
Comments
Could you elaborate on a flow you’d use from the CLI with GoDev? |
Something like this: https://github.com/lukehoban/webapp-go/tree/debugging In short: Having the ability to start |
@DanielHabenicht interesting, this will be useful- I’m relatively new to Go so let me play around with it for awhile first to get a hang of how to use it before I work on this! |
Me too. :) |
You can debug with delve with a docker/ docker-compose setup like this
in docker-compose.yml app:
env_file:
- .env
build: .
security_opt:
- apparmor:unconfined # for delve debugger
cap_add:
- SYS_PTRACE # needed to allow the containers to read /proc/$PID (delve debugger)
mem_limit: 64m
memswap_limit: 0
mem_swappiness: 0
depends_on:
mariadb:
condition: service_started
restart: on-failure
ports:
- 8080:8080
- 40000:40000 |
https://github.com/Microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code
The text was updated successfully, but these errors were encountered: