In debug mode, the simulation pauses when an error occurs in a block.

You can use the debugger to investigate the causes of block errors in a simulation. Errors that occur in blocks automatically trigger the debugger to pause the simulation. Other simulation errors that do not ocrrespond to a specific block do not trigger a pause. For example, a non-convergence error detected by the numerical solver does not pause the simulation. In that case, the simulation ends when the error occurs.

To easily and quickly cause the simulation to pause at an error, you can filter out all other pauses. To do this, click the FINISH button to start the simulation. If an error is detected in a block, a message is shown at the top of the debugger dialog box. You can see the full error message in Message center and then examine the block to determine the cause of the error.