Desktop Tools and Development Environment |
Ending Debugging
After identifying a problem, end the debugging session. You must end a debugging session if you want to change and save an M-file to correct a problem, or if you want to run other functions in MATLAB.
Note It is best to quit debug mode before editing an M-file. If you edit an M-file while in debug mode, you can get unexpected results when you run the file. If you do edit an M-file while in debug mode, breakpoints turn gray, indicating that results might not be reliable. See Valid (Red) and Invalid (Gray) Breakpoints for details. |
To end debugging, click the Exit Debug Mode button , or select Exit Debug Mode from the Debug menu.
You can instead use the function dbquit
to end debugging.
After quitting debugging, the pause indicators in the Editor/Debugger display no longer appear, and the normal prompt >>
appears in the Command Window instead of the debugging prompt, K>>
. You can no longer access the call stack.
Correcting Problems and Ending Debugging | Disabling and Clearing Breakpoints |
© 1994-2005 The MathWorks, Inc.