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
Proposal to add delve debugger commands #20
Conversation
…e commands, set liberal security_opt for api and worker services in docker-compose.yml
Extremely valuable!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soooo helpful!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like it!
Proposed changes:
security_opt
in docker-compose.yml to allow the debugger to function properlymake debug-api
andmake debug-worker
Requested feedback
TODO
- [ ] Create and useEDIT: turns out we don't need thisdocker-compose-api-debug.yml
(and similar for worker) for a sane way of setting environment variables, volumes and portsChange Details
make debug-api
ormake debug-worker
drops you into a(dlv)
prompt where you can set breakpoints, examine function arguments, print the results of an expression, etc (see: delve cli docs)Try it out:
Run
docker-compose build
to update your local images with delve. Then:Then:
Examine arguments:
See local variables:
Evaluate an expression: