The STOP procedure stops the execution of a running program or batch file. Control reverts to the interactive mode.
Suppose that you want to stop the execution of a procedure and print the values of the variables A, B, C and NUM. At the appropriate location in your procedure include the command:
To continue execution of the procedure (if possible) enter the IDL executive command:
BREAKPOINT , EXIT , WAIT