dbloop.m: Dynamically enter debug mode during a loop
by Greg Aloe
23 Jan 2006
(Updated 28 Mar 2006)
While executing code in a loop, this tool allows you to enter debug mode at the press of a button.
|
Watch this File
|
| File Information |
| Description |
Have you ever executed a FOR or WHILE loop and wished you could pause and resume it to examine the status in the debugger?
To use the tool, code the "dbloop" command into your M-code loop at the location that you intend to pause the loop. While the loop is executing, press the "k" key on your keyboard to stop in the debugger at the next iteration. When you are done examining or debugging, Use the "return" or "dbcont" command to resume execution of the loop.
Read the M-file help for more details, including how to configure a different key than "k", and how to use multiple breakpoints. There is also an important disclaimer about using this tool for loops that involve graphics. |
| MATLAB release |
MATLAB 6.0 (R12)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 23 Apr 2008 |
Subramani Adhiachari
|
|
|
| 06 Dec 2010 |
Sanketh
|
|
|
| 14 Sep 2011 |
Marco
|
|
|
| 26 Oct 2011 |
Samantha D
|
|
|
| Updates |
| 28 Mar 2006 |
Added "dbloop any" option.
Added "dbloop close" feature.
Forced handlevisibility/off for easier use. |
|
Contact us at files@mathworks.com