Is it possible to exit debug mode with shortcut keys?
112 views (last 30 days)
Show older comments
MathWorks Support Team
on 7 Jan 2010
Answered: Mateo Terselich
on 18 Jun 2021
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.
Accepted Answer
MathWorks Support Team
on 7 Jan 2010
This answer was flagged by Adam Danz
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>
0 Comments
More Answers (2)
vthuongt
on 7 May 2017
It is also possible to press Shift+F5. Using Matlab2016b and Windows shortcuts. Alternatively you can also open Preferences in Matlab: MATLAB->Keyboard->Shortcuts then search for "Exit Debug Mode" and assing your own shortcut.
Mateo Terselich
on 18 Jun 2021
You can use the debugging commands, I found them useful and faster than the actual GUI.
% foo.m
a = 10;
disp("Hello World");
b = 20;
>> dbstop in foo at 2
>> foo
2 disp("hello world!")
K> dbquit all
>>
https://www.mathworks.com/help/matlab/ref/dbstop.html
https://www.mathworks.com/help/matlab/ref/dbquit.html
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!