Replies: 3 comments
-
I've not had the trouble of no-mouse in VSCode when debugging, but I am running on a Mac. Dumb question, did you click into the Terminal window when you hit your breakpoint? In general, async apps are harder to debug than standard apps, but Textual does provide some nice traceback information (prettily formatted with Rich) and if you scroll back in the terminal, you can usually see where things went wrong. |
Beta Was this translation helpful? Give feedback.
-
just in case other newbs are here searching for "how to debug", a very basic facility appears to be the console |
Beta Was this translation helpful? Give feedback.
-
I had the same problem. The solution is to edit your pycharm run/debug configuration: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running on windows. I've found that if I run python 3.8, I can get the samples to run in power shell and cmd. If I run from pycharm, I get a bunch of '.' characters in the "terminal", if I run in vscode, I get a nicely rendered screen, but there is no mouse interaction, so testing anything that isn't write-only isn't very useful. For example, if you run the calculator app VSCode's windows terminal screen displays a nice calculator, but you can't click on the buttons and get a response
I was going to try to make changes to the calculator (because real calculators are RPN) but quickly found debugging problematic since vscode/pycharm don't seem to detect mouse events when the app is running. I'd like to be able to run an app, set a breakpoint in a mouse handler, and debug from there "normally." Can such debugging in IDEs , or does one need to drop down to PDB or use remote debugging methods?
Beta Was this translation helpful? Give feedback.
All reactions