MATLAB: Is it possible to exit debug mode with shortcut keys

dbquitdebugdebuggerexitMATLABquit

The debug shortcut keys (F5, F10, F11, etc) in the MATLAB Editor are very useful for debugging, developing, and running code respectively. However, there is no shortcut key for "exit debug mode". Since it is often necessary to terminate debug sessions, an exit debug mode shortcut key would be very useful.

Best Answer

This enhancement has been incorporated in Release 2009b (R2009b). For previous product releases, read below for any possible workarounds:
To exit debug mode, press Alt+B followed by D.
You can also execute
dbquit
at the Command Prompt to exit debug mode.
If you are on MATLAB 7.8 (R2009a) and you find that using DBQUIT does not work, please see the following bug report:
<http://www.mathworks.com/support/bugreports/details.html?rp=519233>