<?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 for != : Bang Equals</title>
	<atom:link href="http://www.bangequals.net/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.bangequals.net</link>
	<description>A blog about this that and the other thing.</description>
	<lastBuildDate>Sat, 03 Mar 2012 16:16:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Stubborn Services II by Richard Lee</title>
		<link>http://www.bangequals.net/?p=22#comment-211</link>
		<dc:creator>Richard Lee</dc:creator>
		<pubDate>Sat, 03 Mar 2012 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=22#comment-211</guid>
		<description>I use this method too - I use the following trigger mechanism:
&lt;code&gt;
 private readonly string APPLICATION_DIRECTORY = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
        private bool _isDebugMode = false;
.
.
.
protected override void OnStart(string[] args)
        {
            // If the Debug.debug file exists in the install directory then Debugger will be automatically attached
            {
                if (File.Exists(Path.Combine(APPLICATION_DIRECTORY, &quot;Debug.debug&quot;)))
                    _isDebugMode = Debugger.Launch();
            }

            //Do whatever
        }
&lt;/code&gt;

I then have a file called &lt;strong&gt;Debug.debug&lt;/strong&gt; which can be empty, with a &lt;strong&gt;Copy Always&lt;/strong&gt; setting in VS. That way it is copied over for each build. When I&#039;m ready, I simply delete (or rename) the file file and do a clean and rebuild.</description>
		<content:encoded><![CDATA[<p>I use this method too &#8211; I use the following trigger mechanism:<br />
<code><br />
 private readonly string APPLICATION_DIRECTORY = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);<br />
        private bool _isDebugMode = false;<br />
.<br />
.<br />
.<br />
protected override void OnStart(string[] args)<br />
        {<br />
            // If the Debug.debug file exists in the install directory then Debugger will be automatically attached<br />
            {<br />
                if (File.Exists(Path.Combine(APPLICATION_DIRECTORY, "Debug.debug")))<br />
                    _isDebugMode = Debugger.Launch();<br />
            }</p>
<p>            //Do whatever<br />
        }<br />
</code></p>
<p>I then have a file called <strong>Debug.debug</strong> which can be empty, with a <strong>Copy Always</strong> setting in VS. That way it is copied over for each build. When I&#8217;m ready, I simply delete (or rename) the file file and do a clean and rebuild.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stubborn Services II by MyName</title>
		<link>http://www.bangequals.net/?p=22#comment-204</link>
		<dc:creator>MyName</dc:creator>
		<pubDate>Thu, 19 Jan 2012 10:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=22#comment-204</guid>
		<description>Thanks, great post !</description>
		<content:encoded><![CDATA[<p>Thanks, great post !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should I Be Ashamed&#8230; by pamela</title>
		<link>http://www.bangequals.net/?p=47#comment-171</link>
		<dc:creator>pamela</dc:creator>
		<pubDate>Fri, 26 Jun 2009 07:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=47#comment-171</guid>
		<description>Late but better than never!

HAPPY BIRTHDAY, OMAR!  

I  guessed that you were rather brilliant!</description>
		<content:encoded><![CDATA[<p>Late but better than never!</p>
<p>HAPPY BIRTHDAY, OMAR!  </p>
<p>I  guessed that you were rather brilliant!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overriding ToString() Makes Debugging Easier by JMS</title>
		<link>http://www.bangequals.net/?p=9#comment-150</link>
		<dc:creator>JMS</dc:creator>
		<pubDate>Thu, 18 Sep 2008 19:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=9#comment-150</guid>
		<description>...never mind the fact that some of us old fuddy-duddies make the assumption that we won&#039;t always have the debugging environment available to us, so decorating with an attribute that changes how the data gets displayed is nifty in the short term, all the fancy debug windows aren&#039;t always there to save you. Generally speaking, using stream output to debug in context is the oldest (and most bullet proof) method of debugging if the stuff hits the fan. What better to support this sort of tracing than ToString()? :)</description>
		<content:encoded><![CDATA[<p>&#8230;never mind the fact that some of us old fuddy-duddies make the assumption that we won&#8217;t always have the debugging environment available to us, so decorating with an attribute that changes how the data gets displayed is nifty in the short term, all the fancy debug windows aren&#8217;t always there to save you. Generally speaking, using stream output to debug in context is the oldest (and most bullet proof) method of debugging if the stuff hits the fan. What better to support this sort of tracing than ToString()? <img src='http://www.bangequals.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overriding ToString() Makes Debugging Easier by JMS</title>
		<link>http://www.bangequals.net/?p=9#comment-149</link>
		<dc:creator>JMS</dc:creator>
		<pubDate>Thu, 18 Sep 2008 19:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=9#comment-149</guid>
		<description>Agree with Matt...the only thing you should ever use ToString() for is to get, um, a string that somehow makes an object human readable. I&#039;ve used it in debugging environments and for logging purposes with great success for quite a while now without a hiccup.

Using it for reflection, with the Activator or type checking is totally dangerous. What happens if it&#039;s an Int? You won&#039;t get the fully qualified class name, just a string conversion of the data. Makes no sense.</description>
		<content:encoded><![CDATA[<p>Agree with Matt&#8230;the only thing you should ever use ToString() for is to get, um, a string that somehow makes an object human readable. I&#8217;ve used it in debugging environments and for logging purposes with great success for quite a while now without a hiccup.</p>
<p>Using it for reflection, with the Activator or type checking is totally dangerous. What happens if it&#8217;s an Int? You won&#8217;t get the fully qualified class name, just a string conversion of the data. Makes no sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stubborn Services II by Adrian Aisemberg</title>
		<link>http://www.bangequals.net/?p=22#comment-148</link>
		<dc:creator>Adrian Aisemberg</dc:creator>
		<pubDate>Wed, 17 Sep 2008 12:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=22#comment-148</guid>
		<description>You can use the start arguments:

if (args.Length &gt; 0 &amp;&amp; args[0]==&quot;DEBUG&quot;)
{
        Debugger.Launch();
}

That way, the debug option is always there. No need to re-build when we want to debug.</description>
		<content:encoded><![CDATA[<p>You can use the start arguments:</p>
<p>if (args.Length &gt; 0 &amp;&amp; args[0]==&#8221;DEBUG&#8221;)<br />
{<br />
        Debugger.Launch();<br />
}</p>
<p>That way, the debug option is always there. No need to re-build when we want to debug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stubborn Services. by != : Bang Equals &#187; Blog Archive &#187; Stubborn Services II</title>
		<link>http://www.bangequals.net/?p=4#comment-147</link>
		<dc:creator>!= : Bang Equals &#187; Blog Archive &#187; Stubborn Services II</dc:creator>
		<pubDate>Wed, 17 Sep 2008 09:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ohmz.net/bangequals/?p=4#comment-147</guid>
		<description>[...] my last article on Stubborn Services I was having issues uninstalling a service that I had installed. Today I was having a problem with [...]</description>
		<content:encoded><![CDATA[<p>[...] my last article on Stubborn Services I was having issues uninstalling a service that I had installed. Today I was having a problem with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overriding ToString() Makes Debugging Easier by Matt</title>
		<link>http://www.bangequals.net/?p=9#comment-146</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 15 Sep 2008 16:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=9#comment-146</guid>
		<description>ignu,

I sure hope you aren&#039;t depending on ToString() to return an object&#039;s fully qualified type name. That&#039;s what Type.FullName is for.

ToString() is just that, a string representation of an object. And like all strings, is subject to being loose, inaccurate, difficult to parse, containing a typo, null, etc and should be treated as such.</description>
		<content:encoded><![CDATA[<p>ignu,</p>
<p>I sure hope you aren&#8217;t depending on ToString() to return an object&#8217;s fully qualified type name. That&#8217;s what Type.FullName is for.</p>
<p>ToString() is just that, a string representation of an object. And like all strings, is subject to being loose, inaccurate, difficult to parse, containing a typo, null, etc and should be treated as such.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overriding ToString() Makes Debugging Easier by RyanOC</title>
		<link>http://www.bangequals.net/?p=9#comment-145</link>
		<dc:creator>RyanOC</dc:creator>
		<pubDate>Mon, 15 Sep 2008 12:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=9#comment-145</guid>
		<description>Good stuff, thanks!</description>
		<content:encoded><![CDATA[<p>Good stuff, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overriding ToString() Makes Debugging Easier by ignu</title>
		<link>http://www.bangequals.net/?p=9#comment-144</link>
		<dc:creator>ignu</dc:creator>
		<pubDate>Sun, 14 Sep 2008 20:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bangequals.net/?p=9#comment-144</guid>
		<description>&quot;Overriding ToString is seldom a good idea. &quot;

i agree.  lord knows what&#039;ll happen if you try to write an object and you don&#039;t get its fully qualified type name.  

scary.

DebuggerDisplayAttribute  for helpful debuging info
override ToString() for something that makes sense to display in a ui.</description>
		<content:encoded><![CDATA[<p>&#8220;Overriding ToString is seldom a good idea. &#8221;</p>
<p>i agree.  lord knows what&#8217;ll happen if you try to write an object and you don&#8217;t get its fully qualified type name.  </p>
<p>scary.</p>
<p>DebuggerDisplayAttribute  for helpful debuging info<br />
override ToString() for something that makes sense to display in a ui.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

