You have installed the debugpy, xpress, and xpressinsight modules from pip or conda.
You have set the worker environment variables geared towards your Python installation from PyPI or conda as outlined in the Xpress Insight Python module documentation.
Key elements are around setting MOSEL_RESTR and PYTHON_EXE as well as other environment variables in the Insight worker's application.properties file.
Complete the following steps to run an Insight scenario in debug mode:
Open the Xpress Insight pane in Xpress Workbench and right-click on a scenario. Selection the execution mode (LOAD or RUN) you want to debug.
Figure : 1. When selecting
Debug Scenario Manually, you must either click on
Click to Open Xpress Insight in the green banner, or open
Xpress Insight directly and execute the scenario manually by clicking a button for any custom execution mode, or by using the built-in LOAD and RUN options from the scenario pill drop-down.
During debugging, the Debugger sidebar opens if breakpoints have been set.
See the next section for how to set breakpoints.
When the model has finished executing, the debugger exits and the Debugger sidebar closes.
Note: Once the debugger has exited, you can no longer see the values of any model variables. Make sure you have set breakpoints accordingly. This is in contrast to the Mosel debugger, which automatically suspends just before exit.