Launching a Model in Debug Mode

Launching a model in debug mode allows you to suspend and resume the program, inspect variables, and evaluate expressions using the debugger.

To launch a model in debug mode

  1. In the Projects view, right-click (Mac OS: Ctrl click) the experiment, which you want to launch, and choose Debug from the popup menu, or
    Click the arrow to the right of the Debug toolbar button, or choose Model > Debug from the main menu,
    and choose the experiment you want to launch from the drop-down list.
  2. Your model is now launched in debug mode and the launched process appears in the Debug view.
  3. The model will run until the breakpoint is reached. When the breakpoint is hit, execution is suspended, and AnyLogic IDE window (with the Debug perspective opened) is made active.
  4. You can end a debugging session by allowing the model to run to completion or by terminating it.