Skip to content

How do I use Delve with bubbletea? #241

Answered by muesli
er4hn asked this question in Q&A
Discussion options

You must be logged in to vote

Since BubbleTea apps are in control of stdin/stdout, you need to start it in a headless delve debugger, and then connect to it:

# Start the debugger:
$ dlv debug --headless .
API server listening at: 127.0.0.1:34241

# Connect to it from another terminal:
$ dlv connect 127.0.0.1:34241

Note that the default port used will vary on your system and per run, so actually watch out what address the first dlv run tells you to connect to!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@er4hn
Comment options

Answer selected by er4hn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants