| MATLAB Function Reference | ![]() |
Use the Debug menu in most desktop tools, or use the Editor.
debug
debug lists M-file debugging functions.
Use debugging functions (listed in the See Also section) to help you identify problems in your M-files. Set breakpoints using dbstop. When MATLAB® software encounters a breakpoint during execution, it enters debug mode, the Editor becomes active, and the prompt in the Command Window changes to a K>>. Any MATLAB command is allowed at the prompt. To resume execution, use dbcont or dbstep. To exit from debug mode, use dbquit.
To open the M-File in the Editor when execution reaches a breakpoint, select Debug > Open M-Files When Debugging.
dbclear, dbcont, dbdown, dbquit, dbstack, dbstatus, dbstep, dbstop, dbtype, dbup, evalin, whos
Finding Errors, Debugging, and Correcting M-Files in the MATLAB Desktop Tools and Development Environment documentation
![]() | deblank | dec2base | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |