Replies: 4 comments 1 reply
-
Checkout my debug support for VSCode in bubbleo I wish this guidance was better done in the bubbletea readme. I guess we could make a PR. I've suggested it before but didn't get any response. |
Beta Was this translation helpful? Give feedback.
-
Hey @abramq, have you checked out the delve documentation on how to connect to a headless session in VS Code? Let me know if that helps to clarify, if so, we can add a link to that in the debugging section. VS Code setup
|
Beta Was this translation helpful? Give feedback.
-
@bashbunni very useful link. It looks like setting up a headless debugging session with A nice quality of life improvement with the tasks.json file I linked to above is that it gives you support for starting a debug session via F5 and stopping again via shift F5. Maybe this is the same has the standalone headless session with the exception that you do not need to start the debugger manually yourself. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast reaction 👍 Well, I was reading those materials before, but after trying more and more I can see now that my (first) problem was with those ${workspaceFolder} and paths. I just do not use workspace directly (or maybe I use it unconsciously - I'm just learning Go :-) ), I have only one folder with *.go file I work with, So, after (totally) removing all that path references from launch.json now I am debugging the application 👍 Anyway... after the debugged application is finishing render of the model, debugger stops working "Unable to process 'stepIn': debuggee is running". No variables, and no stack to view. By the way - at the same time the application is running well in the terminal window. I enclose here a picture of VScode. Maybe this is normal and we can not debug it this way? P.S. I use your example application "Composable Views"https://github.com/charmbracelet/bubbletea/tree/master/examples/composable-views |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have found here that when we want to debug Bubble app we have to start dlv independently (headless) and connect to it. I am trying it in many ways (as it is described general, with no details), but can't make the debugger work for VScode. All other tutorials I have found are about remote debugging in Docker, no tutorials for local work. Please, can somebody describe step by step how to make Bubble app to be debugged in VScode? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions