debug

The debug statement stops the current program, allowing you to examine variables or single step.


Parameters

No parameters.


Description

This statement stops the current program, allowing you to examine variables or single step. (Note: If the procedure window is not open, it will not stop.)

After the procedure is stopped you may proceed one step at a time by using the Single Step tool (or menu item), or you can continue at full speed using the Run tool (or menu item).

You may use as many debug statements as you like to stop the program wherever you want to see what is going on inside your program. If you want the procedure to stop only if a certain condition is met, put the debug statement inside a pair of if endif statements.

This example procedure will stop just after the start of the loop (if the procedure window is open).

local X,theChar,aPhone
X=1
aPhone=""
loop
    debug
    theChar=Memo[X;1]
    X=X+1
    stoploopif theChar=""
    repeatloopif theChar"(" and aPhone="" aPhone=aPhone+theChar
until aPhone match "(???) ???-????"
message aPhone

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.