<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: MATLAB Basics: Using dbstop if error</title>
	<link>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<pubDate>Mon, 23 Nov 2009 01:55:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-943</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 29 Oct 2008 19:57:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-943</guid>
		<description>Mory,

I understand what you are looking for in an abstract way, but I am having some problems with understanding particulars.

If I am writing code, the bad code might be in *my* code, but might not manifest until a deep call, ie

sum('a', 1) %let's pretend this code caused an error in SUM

Would you want to stop?  The 'error' is thrown by SUM which is not in your directory, so should it be skipped or not?  I personally want it to stop and then just run up the stack until I get to *my* code.

Like I said, I think there is something to this suggestion, but I am not sure what would cause a DBSTOP and what would not.

-Doug</description>
		<content:encoded><![CDATA[<p>Mory,</p>
<p>I understand what you are looking for in an abstract way, but I am having some problems with understanding particulars.</p>
<p>If I am writing code, the bad code might be in *my* code, but might not manifest until a deep call, ie</p>
<p>sum(&#8217;a', 1) %let&#8217;s pretend this code caused an error in SUM</p>
<p>Would you want to stop?  The &#8216;error&#8217; is thrown by SUM which is not in your directory, so should it be skipped or not?  I personally want it to stop and then just run up the stack until I get to *my* code.</p>
<p>Like I said, I think there is something to this suggestion, but I am not sure what would cause a DBSTOP and what would not.</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morrison Lucas</title>
		<link>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-942</link>
		<dc:creator>Morrison Lucas</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:56:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-942</guid>
		<description>Hear hear!

I generally have one set of files that I'm debugging, and desire the "dbstop if error" functionality for files in that set.  Everything else I don't want to hear about, just give me the error message and let's move on.

In terms of the interface, one possibility would be to implement the following calling convention:
    DBSTOP in MFILE if error
As well as the "caught error", "warning" variants.

-Mory</description>
		<content:encoded><![CDATA[<p>Hear hear!</p>
<p>I generally have one set of files that I&#8217;m debugging, and desire the &#8220;dbstop if error&#8221; functionality for files in that set.  Everything else I don&#8217;t want to hear about, just give me the error message and let&#8217;s move on.</p>
<p>In terms of the interface, one possibility would be to implement the following calling convention:<br />
    DBSTOP in MFILE if error<br />
As well as the &#8220;caught error&#8221;, &#8220;warning&#8221; variants.</p>
<p>-Mory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hirsch</title>
		<link>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-945</link>
		<dc:creator>Scott Hirsch</dc:creator>
		<pubDate>Thu, 28 Aug 2008 17:42:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-945</guid>
		<description>Eric -

That's a nice suggestion.  I often get frustrated when debugging GUIDE guis and ending up inside of guimainfcn.  I can't think of a direct way to handle this - there might be some games you could do with stopping based on certain error IDs, but I'm not sure how far this would get you.

- scott</description>
		<content:encoded><![CDATA[<p>Eric -</p>
<p>That&#8217;s a nice suggestion.  I often get frustrated when debugging GUIDE guis and ending up inside of guimainfcn.  I can&#8217;t think of a direct way to handle this - there might be some games you could do with stopping based on certain error IDs, but I&#8217;m not sure how far this would get you.</p>
<p>- scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric S</title>
		<link>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-944</link>
		<dc:creator>Eric S</dc:creator>
		<pubDate>Thu, 28 Aug 2008 16:37:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/28/matlab-basics-using-dbstop-if-error/#comment-944</guid>
		<description>It would be great to stop the debugger from coughing somewhere inside the more "internal" functions.
Is there a way to specify not to barf in certain directories, or in the ones you're developing in only?

Cheers,

Eric</description>
		<content:encoded><![CDATA[<p>It would be great to stop the debugger from coughing somewhere inside the more &#8220;internal&#8221; functions.<br />
Is there a way to specify not to barf in certain directories, or in the ones you&#8217;re developing in only?</p>
<p>Cheers,</p>
<p>Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>
