ÎÜñ|‹ø\/\/ñ [ÐëÞrëçã†ëð]'s Blog

Amit Bahree's insight into stuff...

News

And God said "Let there be light". But then the program crashed because he was trying to access the 'light' property of a NULL universe pointer.

blog roll

calendar

intersting finds

reading

techy finds

No debugger in C#?

I don't get it. Anatoly discusses how he (along with other people he quotes) don't use the debugger in C# or any other managed code and letting the runtime find the exception and let it “deal” with it.

Now I don't know these people and they could probably be correct in the context of the applications they write, but I don't agree with their viewpoint. Sure there are applications that would not warrant the use of a debugger (like HelloWolrd *grin*), but most of the applications I design and work on are fairly complex and the debugger is a very invaluable tool! Exceptions are very expensive (as discussed here) and should be used wisely! Of all the features of Whidbey, the one I am most excited about is the huge improvements in the debugger and also how you an extend the debugger with GUI to inspect your complex data types. The point also holds for any managed language and not just .NET. What do you think?

Comments

Amit Bahree said:

Amit.

I didn't mean that I rely on exceptions. My point was that during testing by exception stack trace one can find out easily (imho) where the bug is. One should use exceptions carefully in the code though, even those that are "swallowed" by the runtime.
# June 12, 2004 10:49 AM

TrackBack said:

# June 12, 2004 11:13 AM

Amit Bahree said:

Antoly discuess this on his blog (http://gensystem.europe.webmatrixhosting.net/al/archive/2004/06/13/355.aspx) and does raise a valid point. But like I commented there, it is a goo analogy when an application does not have bugs due to Bad data or invalid logic - especially when involving complex data types or in an SOA environment where it may or may not be easy.
# June 13, 2004 10:55 AM

Amit Bahree said:

Solemn article. It make me lost in thoughts.
# January 28, 2006 9:06 AM

Amit Bahree said:

Solemn article. It make me lost in thoughts.
# January 28, 2006 9:06 AM