Debugging the Scenario
Complete the following steps to start debugging a scenario:
- Open the Xpress Insight sidebar, if it is not already open, by clicking its name.
- Expand the scenario tree and select the scenario you want to debug.
- Click the Debug button, which is the third button from the left within the sidebar.
- In the menu that appears, click Debug Scenario - LOAD.
- The app is published to Xpress Insight before the debug session starts.
- The line with the breakpoint is highlighted to show that model execution is suspended at that line.
- The Debugger sidebar is open, where you can see the call stack and the values of the variables defined by the model.
Now that the debug session is established, you can step through the model and see how the state changes as the execution progresses.
- In the Debugger sidebar, find the Variables section and click the arrow icon to the left of Globals.
You see a list of the global variables defined in the model. The value of MY_INTEGER is 0.
- Step over the current line by clicking the second button from the left in the Debugger sidebar, or by pressing F10.
The next executable line is highlighted to show that model execution has moved forward.
- Expand the Globals entry within the Variables section again.
The value of MY_INTEGER is now 10.
Parent Topic
Debugging Xpress Insight Scenarios