<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A great utility for debugging</title>
	<atom:link href="http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Thu, 16 Feb 2012 22:44:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13310</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Mon, 23 Nov 2009 14:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13310</guid>
		<description>Hi Eric,
Thanks for the questions. No, my icon doesn&#039;t change colors; I don&#039;t think there&#039;s a documented way to implement that. (Though if someone can demonstrate that I&#039;m wrong in that regard, I&#039;d be _most_ interested!) The picture on top (above) was from Ken&#039;s blog (Ken &amp; Mike on the MATLAB Desktop). Ken chose to implement two buttons. One can easily be red, the other green. I opted for a toggle instead (lower picture). It&#039;s always red.

And no, setting the appdata does not require administrative privileges. That&#039;s just core MATLAB speak! (Read the doc entry for &#124;setappdata&#124; for more on that.)

Cheers!
Brett</description>
		<content:encoded><![CDATA[<p>Hi Eric,<br />
Thanks for the questions. No, my icon doesn&#8217;t change colors; I don&#8217;t think there&#8217;s a documented way to implement that. (Though if someone can demonstrate that I&#8217;m wrong in that regard, I&#8217;d be _most_ interested!) The picture on top (above) was from Ken&#8217;s blog (Ken &#038; Mike on the MATLAB Desktop). Ken chose to implement two buttons. One can easily be red, the other green. I opted for a toggle instead (lower picture). It&#8217;s always red.</p>
<p>And no, setting the appdata does not require administrative privileges. That&#8217;s just core MATLAB speak! (Read the doc entry for |setappdata| for more on that.)</p>
<p>Cheers!<br />
Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13309</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13309</guid>
		<description>Brett, Also, do you need to be an Admin on the machine for
&lt;pre&gt;
setappdata(0,&#039;dmbmute&#039;,true);
&lt;/pre&gt;
to work?</description>
		<content:encoded><![CDATA[<p>Brett, Also, do you need to be an Admin on the machine for</p>
<pre>
setappdata(0,'dmbmute',true);
</pre>
<p>to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13308</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13308</guid>
		<description>Brett, Does you shortcut icon change depending on the mute status - green when unmuted, red when muted?</description>
		<content:encoded><![CDATA[<p>Brett, Does you shortcut icon change depending on the mute status &#8211; green when unmuted, red when muted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13240</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 11 Sep 2009 20:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13240</guid>
		<description>Hi Corbin,
Nice! My version simply stored the mute status in, and queried from, the appdata of the MATLAB root:
&lt;pre class=&quot;code&quot;&gt;
muteStatus = getappdata(0,&#039;dbmuteStatus&#039;);
if isempty(muteStatus) &#124;&#124; ~muteStatus
    setappdata(0,&#039;dbmuteStatus&#039;,true);
    dbmute
else
    setappdata(0,&#039;dbmuteStatus&#039;,false);
    dbunmute
end
&lt;/pre&gt;

But your version works well, too. If you&#039;ll respond directly to my email...HINT:
&lt;pre class=&quot;code&quot;&gt;
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))
&lt;/pre&gt;
with your snail mail address, I&#039;d like to send you a small token of our appreciation!</description>
		<content:encoded><![CDATA[<p>Hi Corbin,<br />
Nice! My version simply stored the mute status in, and queried from, the appdata of the MATLAB root:</p>
<pre class="code">
muteStatus = getappdata(0,'dbmuteStatus');
if isempty(muteStatus) || ~muteStatus
    setappdata(0,'dbmuteStatus',true);
    dbmute
else
    setappdata(0,'dbmuteStatus',false);
    dbunmute
end
</pre>
<p>But your version works well, too. If you&#8217;ll respond directly to my email&#8230;HINT:</p>
<pre class="code">
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))
</pre>
<p>with your snail mail address, I&#8217;d like to send you a small token of our appreciation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corbin Holland</title>
		<link>http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13238</link>
		<dc:creator>Corbin Holland</dc:creator>
		<pubDate>Fri, 11 Sep 2009 18:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2009/08/28/a-great-utility-for-debugging/#comment-13238</guid>
		<description>Here&#039;s how I would write the toggle shortcut:

&lt;pre&gt;
s = dbstatus(&#039;-completenames&#039;);
mute = true;
for i = 1:length(s)
   if (strcmp(s(i).expression,&#039;false&#039;))
      mute = false;
      break;
   end
end
if (mute)
   dbmute
   disp(&#039;Muting all breakpoints&#039;);
else
   dbunmute
   disp(&#039;Unmuting all breakpoints&#039;);
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how I would write the toggle shortcut:</p>
<pre>
s = dbstatus('-completenames');
mute = true;
for i = 1:length(s)
   if (strcmp(s(i).expression,'false'))
      mute = false;
      break;
   end
end
if (mute)
   dbmute
   disp('Muting all breakpoints');
else
   dbunmute
   disp('Unmuting all breakpoints');
end
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

