Stop the Debugger

How to End the Debugger Session

To end the debugger session without completing the simulation, enter one of these commands at the sedebug>> prompt:

sedb.quit
quit

The simulation ends, the debugging session ends, and the MATLAB® command prompt returns.

At the sedebug>> prompt, quit is equivalent to sedb.quit. However, specifying the sedb package prevents you from inadvertently ending the MATLAB session if you enter the command at the incorrect command prompt.

Comparison of Simulation Control Functions

The functions in the next table have different behavior and purposes, but any of the functions can cause the debugger session to end.

FunctionBehavior with Respect to Ending the Debugger SessionPrimary Usage
sedb.quit or quitEnds the debugger session without completing the simulation.To end the debugger session immediately without spending time on further simulation log entries, plots, or other simulation behavior.
runtoendCompletes the simulation and then ends the debugger session.To see the simulation log or plots but not enter commands.
contEnds the debugger session only if the simulation is suspended at the built-in breakpoint at the end of the simulation.Primarily with breakpoints. For more information, see Use Breakpoints During Debugging.
stepEnds the debugger session only if the simulation is suspended at the built-in breakpoint at the end of the simulation.Primarily for proceeding step by step through the simulation. For more information, see Step Through the Simulation.

Was this topic helpful?