Starting a Debug Session
Complete the following steps to run a model in debug mode:
- In the Run Configurations drop-down list, select the Mosel source file that you want to run.
- Click the Debug button, which is third button to the right of the Run Configurations drop-down list.
Alternatively, press F5.Note Only one Mosel model can be debugged at any given time. If you run a second Mosel model while the first one is still active, the debugger does not attach to the second model and the Run in Debug Mode button is deselected by default in its output window.
When the model has finished executing, the Debugger sidebar opens and the last line of the model is highlighted to show that the model is suspended in the debugger after it has finished executing. Xpress Workbench suspends the model execution here so that you can review the final state of the model.
- When you are ready, you can terminate the model execution by clicking the Resume button in the Debugger sidebar, clicking OK when prompted.
Mosel exits
Note Once Mosel has exited, you can no longer see the values of any model variables. Make sure you have finished reviewing the model data before you terminate Mosel.
Parent Topic
Debugging Models