Debugging workaround #134
Replies: 2 comments 1 reply
|
I had the same problem in the past, and I had the same solution: Single step. (Pdb) b /var/containers/.../Pythonista3/Documents/.../somemodule.py:123
# or more conveniently (if the module is already imported):
(Pdb) b mymodule.my_function
(Pdb) b ui.View.draw # works for many built-in modules tooHere is my full conversation with Grok about the problem: |
|
Digging around a little further reveals https://github.com/jsbain/vdb/ it needed a few Python2 - 3 changes, but once installed and called with I’ll see how it goes. |
Uh oh!
There was an error while loading. Please reload this page.
Has anybody found a workaround for the limited debugging options in Pythonista.
Breakpoints can only be set in the top level module, not in any lower levels.
Hence, to establish values of parameters at lower levels, I either need to single step down through levels and loops, or set up logging points in the sub module.
I would like to set a breakpoint, possibly conditional, within a lower module and stop there, with full inspection of values.
Could this be achieved with pdb, and can it link to the inbuilt Pythonista debug popup?
All reactions