<?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: Muting breakpoints</title>
	<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/</link>
	<description>Ken &#38; Mike work on the MATLAB Desktop team</description>
	<pubDate>Mon, 23 Nov 2009 00:32:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6471</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 07 Sep 2009 19:26:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6471</guid>
		<description>Hi Ben,

We have an enhancement request to pause execution. Theres no request yet to resume after errors (you can submit on &lt;href="http://www.mathworks.com/support/service_requests/contact_support.do"&gt;here&lt;/a&gt; if you like).

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>We have an enhancement request to pause execution. Theres no request yet to resume after errors (you can submit on<br />
<href ="http://www.mathworks.com/support/service_requests/contact_support.do">here if you like).</href></p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6461</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sat, 05 Sep 2009 13:07:30 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6461</guid>
		<description>Hi Ken,

In future versions will it be possible to interactively pause and resume execution or resume after errors (such as Ctrl-C)?

thanks,
Ben</description>
		<content:encoded><![CDATA[<p>Hi Ken,</p>
<p>In future versions will it be possible to interactively pause and resume execution or resume after errors (such as Ctrl-C)?</p>
<p>thanks,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Parsons</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6374</link>
		<dc:creator>Kieran Parsons</dc:creator>
		<pubDate>Wed, 22 Jul 2009 20:43:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6374</guid>
		<description>Thanks Ken. I tried that (and a bunch of other things) without success. After a lot of experimenting with dbclear etc and not understanding why things that worked in the command window would not work in a function, I finally realized that you need to add a pause between the 'clear classes' or 'dbclear all' and the dbstop. A pause of 0.01 was sufficient for me to get it to work.

I added the enhancement request that clear classes should not remove breakpoints.

Thanks,
Kieran</description>
		<content:encoded><![CDATA[<p>Thanks Ken. I tried that (and a bunch of other things) without success. After a lot of experimenting with dbclear etc and not understanding why things that worked in the command window would not work in a function, I finally realized that you need to add a pause between the &#8216;clear classes&#8217; or &#8216;dbclear all&#8217; and the dbstop. A pause of 0.01 was sufficient for me to get it to work.</p>
<p>I added the enhancement request that clear classes should not remove breakpoints.</p>
<p>Thanks,<br />
Kieran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6373</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 22 Jul 2009 19:50:02 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6373</guid>
		<description>Hi Kieran,

You could iterate over the results of dbstatus and call dbstop -- I'm sure that will work, as that's what my function does.

I've submitted a bug report for the breakpoints disappearing from the Editor.

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Kieran,</p>
<p>You could iterate over the results of dbstatus and call dbstop &#8212; I&#8217;m sure that will work, as that&#8217;s what my function does.</p>
<p>I&#8217;ve submitted a bug report for the breakpoints disappearing from the Editor.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Parsons</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6372</link>
		<dc:creator>Kieran Parsons</dc:creator>
		<pubDate>Wed, 22 Jul 2009 19:47:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6372</guid>
		<description>Thanks Ken. Unfortunately my function does not work in practice very well as I discovered after a bit more testing.

If clear_classes is run then the breakpoints are reestablished correctly but do not appear in the editor (as mentioned). Unfortunately this means that if you make changes to the file and then save it they disappear (ie the editor has lost track of them and so removes them on a save). Presumably this is the same or a related bug to why they do not appear, but its impact is more of a problem.

I will add an enhancement request that clear classes should not remove breakpoints.  

Thanks,
Kieran</description>
		<content:encoded><![CDATA[<p>Thanks Ken. Unfortunately my function does not work in practice very well as I discovered after a bit more testing.</p>
<p>If clear_classes is run then the breakpoints are reestablished correctly but do not appear in the editor (as mentioned). Unfortunately this means that if you make changes to the file and then save it they disappear (ie the editor has lost track of them and so removes them on a save). Presumably this is the same or a related bug to why they do not appear, but its impact is more of a problem.</p>
<p>I will add an enhancement request that clear classes should not remove breakpoints.  </p>
<p>Thanks,<br />
Kieran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6370</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 22 Jul 2009 18:26:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6370</guid>
		<description>Thanks for the feedback Kieran. I don't think there is a simpler way to do what you're trying to do. The breakpoints not showing up in the Editor is definitely a bug, which I've filed.

-Ken</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback Kieran. I don&#8217;t think there is a simpler way to do what you&#8217;re trying to do. The breakpoints not showing up in the Editor is definitely a bug, which I&#8217;ve filed.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Parsons</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6369</link>
		<dc:creator>Kieran Parsons</dc:creator>
		<pubDate>Wed, 22 Jul 2009 17:14:15 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6369</guid>
		<description>Nice function. One thing that has been bugging me for a while is that 'clear classes' removes breakpoints. This makes the workflow for debugging classes more of a challenge than necessary. To avoid this I wrote a small function below. I thought I would have to save the breakpoints to file due to the 'clear all' part of 'clear classes', but this seems to work OK. One thing I note is that after I call the new 'clear_classes' function the breakpoints are not visible in the editor even though they do work.

Is there an easier way to do this? Are there any likely side-effects of doing this?

&lt;pre&gt;
function clear_classes()
%CLEAR_CLASSES Clears classes but keeps breakpoints.
% CLEAR_CLASSES() performs a 'clear classes' in the base workspace, but reestablishes the
% breakpoints after the clear operation.
%
% See also CLEAR.

breakpoints = dbstatus('-completenames');
evalin('base', 'clear classes');
dbstop(breakpoints);
end
&lt;/pre&gt;

Thanks,
Kieran</description>
		<content:encoded><![CDATA[<p>Nice function. One thing that has been bugging me for a while is that &#8216;clear classes&#8217; removes breakpoints. This makes the workflow for debugging classes more of a challenge than necessary. To avoid this I wrote a small function below. I thought I would have to save the breakpoints to file due to the &#8216;clear all&#8217; part of &#8216;clear classes&#8217;, but this seems to work OK. One thing I note is that after I call the new &#8216;clear_classes&#8217; function the breakpoints are not visible in the editor even though they do work.</p>
<p>Is there an easier way to do this? Are there any likely side-effects of doing this?</p>
<pre>
function clear_classes()
%CLEAR_CLASSES Clears classes but keeps breakpoints.
% CLEAR_CLASSES() performs a 'clear classes' in the base workspace, but reestablishes the
% breakpoints after the clear operation.
%
% See also CLEAR.

breakpoints = dbstatus('-completenames');
evalin('base', 'clear classes');
dbstop(breakpoints);
end
</pre>
<p>Thanks,<br />
Kieran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6348</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sat, 18 Jul 2009 10:48:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6348</guid>
		<description>Glad your finding dbmute and dbunmute useful! I've submitted these to the file exchange -- I'll update the post when they get approved.

-Ken</description>
		<content:encoded><![CDATA[<p>Glad your finding dbmute and dbunmute useful! I&#8217;ve submitted these to the file exchange &#8212; I&#8217;ll update the post when they get approved.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Shoelson</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6346</link>
		<dc:creator>Brett Shoelson</dc:creator>
		<pubDate>Fri, 17 Jul 2009 19:32:52 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6346</guid>
		<description>Very nice, Ken--your code has taken a place of honor on my shortcut bar! One thought: why not post mute/unmute to the MATLAB Central File Exchange? They have "Pick of the Week" written all over them. ;)

Brett</description>
		<content:encoded><![CDATA[<p>Very nice, Ken&#8211;your code has taken a place of honor on my shortcut bar! One thought: why not post mute/unmute to the MATLAB Central File Exchange? They have &#8220;Pick of the Week&#8221; written all over them. ;)</p>
<p>Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6343</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 15 Jul 2009 11:14:59 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2009/07/13/muting-breakpoints/#comment-6343</guid>
		<description>Hi David,

Thanks! My original version of dbmute actually did save the breakpoints at the time that you muted them by &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/dbstop.html&#038;http://blogs.mathworks.com/desktop/wp-admin/edit-comments.php?s=breakpoints&#038;submit=Search&#038;mode=view#bqxd6ek-1" rel="nofollow"&gt;saving the results of dbstatus&lt;/a&gt;. The reason I moved away from that was because breakpoints that you removed *after* pressing mute would reappear when you unmuted, as the saved state was blinding reinstalled. Maybe I could coalesce the two solutions.

-Ken</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Thanks! My original version of dbmute actually did save the breakpoints at the time that you muted them by <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/dbstop.html&#038;http://blogs.mathworks.com/desktop/wp-admin/edit-comments.php?s=breakpoints&#038;submit=Search&#038;mode=view#bqxd6ek-1" rel="nofollow">saving the results of dbstatus</a>. The reason I moved away from that was because breakpoints that you removed *after* pressing mute would reappear when you unmuted, as the saved state was blinding reinstalled. Maybe I could coalesce the two solutions.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
</channel>
</rss>
