Debug Method
Debugger entry point. This function is called by Mosel whenever execution of the model is interrupted. From there, breakpoints can be managed (XPRMModel.setBreakpoint(XPRMLocation), XPRMModel.clearBreakpoint(XPRMLocation), XPRMModel.clearAllBreakpoints()) and the model may be inspected (XPRMModel.findIdentifier(string), XPRMModel.setStackFrame(int)). The return value indicates whether execution should resume and when next interruption should happen.
Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 5.0.2.0

C#
XPRMLocation Debug( XPRMRunResult vmstat, XPRMLocation loc )
Parameters
- vmstat
-
Type:
MoselXPRMRunResult
Execution status. In this context the status may take value XPRMRunResult.RT_BREAK if interruption is due to a breakpoint and value XPRMRunResult.RT_NIFCT if the program was executing a native function when interruption occurred. - loc
-
Type:
MoselXPRMLocation
location in the model corresponding to the statement being executed (asynchronous interruption) or to be executed (breakpoint).
Return Value
Type: XPRMLocationThe location where the execution should be stopped next or one of the following special values: XPRMLocation.DBG_CONTcontinue executionXPRMLocation.DBG_NEXTstop before the next statement skipping function callsXPRMLocation.DBG_STEPstop before next statement stepping into function callsXPRMLocation.DBG_STOPterminate execution
