Initializing help system before first use

Debugging Scenarios

Xpress Workbench can be used to debug scenarios while they are executing on an Xpress Insight server.

First you must have published the project to an Xpress Insight server. You can then start a debug session within Xpress Workbench. You can debug any type of scenario execution, whether the scenario is being loaded or run, or is executing in a custom run mode.

Complete the following steps to debug a scenario:

  1. Open the Xpress Insight sidebar, if it is not already open, by clicking its name.
  2. Expand the scenario tree and select the scenario you want to debug.
  3. Click Debug, which is the third button from the left within the sidebar.
  4. In the menu that appears, select the execution mode that you want to use for the debug session.

    The app is published to Xpress Insight before the debug session starts.

  5. You can now debug the model as usual. See Debugging Models for more information.
    Note that:
    • If you set a breakpoint, the line with the breakpoint is highlighted to show that model execution is suspended at that line.
    • Otherwise, the model runs to completion and suspends at the last line, so you can review the final state of the model.
    • The Debugger sidebar opens, where you can see the call stack and the values of the variables defined by the model.

Once you have debugged a scenario, it will be added to the Run Configurations drop-down list in the main menu bar. You can quickly repeat the same debug session again by clicking the Debug button to the right of the Run Configurations drop-down list.