Skip to content
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

docs: add vs code debugging section with headless delve #1187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imyounas
Copy link

In the current README.md, the debugging section lacks the instructions on how to setup VS Code with delve in headless mode to debug bubble tea apps.
I have added step by step instructions on how to do this, believing it will be a great help for new developers on how to debug CLI apps.
Kindly review & approve it.
Thanks - Imran

@fireflycons
Copy link

Nice, however you may want to adjust this to include how to pass command line arguments to the program being debugged. Took me 15-20 min or so to work this out, not having used dlv in this manner before.

I think specifically point out that args is invalid in launch.json for this remote mode, and that the args need to be passed to dlv directly - that everything after -- is passed to the program being debugged, e.g.

dlv debug --headless --api-version=2 --listen=127.0.0.1:43000 . -- arg1 --arg2 [ etc ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants