Open Benjamin-Loison opened 4 months ago
Notably to know what line we are currently executing which may be unclear when execute whole script and there is no clear debugging print
s.
Related to #51, Getting started with Pyzo does not seem to help.
Both Shell and Shells have some buttons but unclear to make them available and use.
Maybe have to use Interrupt the current running code (does not work for extension code):
the goal is then to resume.
Another time got:
Stop debugging results in:
Even with setting a yellow circle I still face the same behaviors.
Shell > Postmortem: debug from last traceback does not seem to do anything when the script is running.
Debugging next/step/continue. Post-mortem debugging.
Source: https://pyzo.org/features.html
Interactivity (ways to run code) does not help.
Tools does not have a specific tab but Workspace is interesting by listing all variables etc. Alternatively whos
, source: https://pyzo.org/screenshots.html.
https://pyzo.org/interactive_vs_script.html does not help.
However, in my case I do not know where to put a breakpoint.
It does seem however that step-into doesn't (yet?) work well (i.e. stopping in one line and then stepping into another function) unless you set up another break-point.
Source: the Stack Overflow answer 38943360 (Aug 14, 2016 at 14:49)
https://pyzo.narkive.com/VbtSv80m/how-to-use-the-new-debug-mode-in is about setting breakpoints, so not interesting in our case.
Pyzo debugger on DuckDuckGo and Google first page of results do not seem very interesting.
Should watch YouTube: tM9YUWVQ26A.
Is it even possible without Pyzo?
Related to Benjamin_Loison/codeblocks/issues/10.
Highlighting line being executed would be nice and would maybe avoid Benjamin-Loison/cpython/issues/40.
Related to Benjamin-Loison/cpython/issues/22.
Note environ PYZO_PROCESS_EVENTS_WHILE_DEBUGGING=1
.
To avoid writing temporary instructions in code just for debugging.
Notably debug with just pausing and resuming execution which would not be resumable easily by just executing part of the script.
Related to #33.
+8