Be the first to rate this file! 11 downloads (last 30 days) File Size: 4.99 MB File ID: #19544

Video Tutorial: MATLAB Basics: Debugging with dbstop if error

by Doug Hull

 

10 Apr 2008 (Updated 10 Apr 2008)

Code covered by BSD License  

Two minute video shows how to use dbstop if error to debug

Download Now | Watch this File

File Information
Description

When MATLAB throws an error, if you are in a function, you will end up at the base workspace and lose access to the variables as they were in the function when the error was thrown. This makes it difficult to understand why the error occurred.
                    
With the debugger, MATLAB can stop when the error is thrown, so the variables are still in scope. This makes debugging much easier.
                    
See more videos without downloading here:
http://blogs.mathworks.com/pick/category/video

MATLAB release MATLAB 7.6 (R2008a)
Zip File Content  
HTML Files Video from http://blogs.mathworks.com/pick
Other Files
99 Basics debugger.css,
99 Basics debugger.flv,
mCode/main.m,
99 Basics debugger.js,
99 Basics debugger_config.xml,
99 Basics debugger_controller.swf,
99 Basics debugger_iPod.m4v,
99 Basics debugger_nofp_bg.gif,
99 Basics debugger_preload.swf,
Additional-embed.js,
ProductionInfo.xml,
swfobject.js,
images/bottom_center.jpg,
images/bottom_center_left.jpg,
images/bottom_left.jpg,
images/bottom_right.jpg,
images/vid_bkgd.gif,
images/dl_bkgd.gif,
images/dl_icon.gif,
images/dl_icon_bkgd.gif,
images/dl_icon_bkgd_over.gif,
images/dl_row_bkgd.gif,
images/play_bttn_bkgd.gif,
images/play_icon.gif,
images/spacer.gif,
images/top_center.gif,
images/top_center.jpg,
images/top_center_clr.gif,
images/top_left_corner.jpg,
images/top_right_corner.jpg,
images/curain_bkgd.gif
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
video Doug Hull 22 Oct 2008 09:57:17
tutorial Doug Hull 22 Oct 2008 09:57:17
debug Doug Hull 22 Oct 2008 09:57:17
error Doug Hull 22 Oct 2008 09:57:17
debugger Doug Hull 22 Oct 2008 09:57:17
debugging Doug Hull 22 Oct 2008 09:57:17
breakpoint Doug Hull 22 Oct 2008 09:57:17
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com