Interactive Mode Simulation : The Microdebugger Tool : Debugging a Textual and Graphical Procedure

Debugging a Textual and Graphical Procedure

This section provides information to setup a debugging session for a textual or graphical procedure. The microdebugger tool is start whenever a breakpoint is reached during the execution of a subroutine.

The debugger tool allows you to select elements within your model and monitor the execution of microsteps as you simulate. When monitoring textual procedures, code is viewable within the microdebugger tool. For graphical procedures, a read-only Graphic Editor opens, allowing you to view the execution of microsteps graphically.

mStep starts one microstep.
mStepN runs a specified number of microsteps.
Continue runs until the next breakpoint is reached or to the end of the current context.
Run to End runs until the end of the current procedure.
Dismiss closes the window.
Stack shows the levels of procedures being executed. Procedure names are listed in tabular format. Double-clicking on any procedure name in the stack performs an up/down action.
Code window displays the code within the current execution. The current execution line is highlighted.
Monitor Display displays the status of selected elements.
Command Line allows you to enter commands to examine data (or Do Actions). The results are displayed in the Results area.
Results displays results for each action.
Dismiss turns off the dialog.