Breakpoints have existed in ZPE since version 1.12.7 (July 2024, Loch Lion).
In ZPE a breakpoint will simply terminate the program at that point and show the state of the program. It will list all of the variables in the current call stack and their values.
If running the program through the GUI editor, the ZPE Variable Watch window will appear when it hits the breakpoint.
To add a breakpoint, simply put the #breakpoint#
into
the code to break at that exact point.
YASS
for ($i = 0 to 10) print($i) if ($i > 5) #breakpoint# end if end for
There are plans to make a more visual manner of doing this at some point.
Comments