Break on All Errors

By AgileCoder at September 03, 2010 03:59
Filed Under:

Like a lot of .Net developers, I actually got into professional programming on the VB/VBA track.  I worked in Access and VB6 and took the grief from C++ developers, Java developers, FoxPro developers... you get the idea. 

As I transitioned to .Net I have found myself frequently switching between C# and VB.Net.  I love C# syntax, and I love the improvements in each version of Visual Sutdio, but there was one feature I really missed.  I don't know if it was the default in VB6, but you could set the IDE to break on all errors, even if they were handled. I never took the time to figure out if you could do that in VS 2005 or earlier, but I spent some time reviewing code of some of the developers that work for me this week, and I kept seeing a few weird bugs.  I set breakpoints and noticed that there were exceptions thrown, but they were swallowed in the Catch{} statement.

This lead to the discovery of the following VS 2008 Setting:

Debug > Exceptions (Ctrl D, E) >  Common Language Runtime Exceptions: check the "Thrown" box.

The behavior of the IDE seems identical to the old Break on All Errors from VB6.  In my case, it helped me track down errors in three different classes today.

 

Comments

12/24/2010 4:46:10 AM #

pingback

Pingback from crazyplugs.com

Blogs of Interest (7) | Crazy Plugs News

crazyplugs.com | Reply

7/7/2011 5:00:01 PM #

ricky

This is excellent post, I know it will help me personally. I am going to share this with my friends.

We develope high end themes, we provide the finest WordPress Themes and continuous support so you can continue your website and update it with no hassle! Our Magento, Wordpress, Drupal themes are upto date with current trends and are very professional. We design very clean, elegant and futuristic designs that can be fully custimezed to any CMS. We also provide custome development for Magento, wordpress, Drupal.Theming, Development and Installation.

services:

website design, ecommerce website, shopping cart website, logo design, web designs, CMS, web design agency, application developer, mobile applications developer, online shopping sites, psd web designs,xhtml, css designs, magento designs

ricky United Kingdom | Reply

7/7/2011 5:00:23 PM #

ricky

This is excellent post, I know it will help me personally. I am going to share this with my friends.

We develope high end themes, we provide the finest WordPress Themes and continuous support so you can continue your website and update it with no hassle! Our Magento, Wordpress, Drupal themes are upto date with current trends and are very professional. We design very clean, elegant and futuristic designs that can be fully custimezed to any CMS. We also provide custome development for Magento, wordpress, Drupal.Theming, Development and Installation.

services:

website design, ecommerce website, shopping cart website, logo design, web designs, CMS, web design agency, application developer, mobile applications developer, online shopping sites, psd web designs,xhtml, css designs, magento designs

ricky United Kingdom | Reply

7/14/2011 1:37:43 PM #

resume

Oh I guess I can use it with a great pleasure!

resume United States | Reply

7/26/2011 5:34:44 PM #

Accident Claims in UK

Great writing, thanks for sharing with us, I have subscribed please keep them update.

<a href="http://www.equitassolicitors.net">Accident Claims in UK </a>

Accident Claims in UK United Kingdom | Reply

8/9/2011 6:16:07 PM #

iphone development company

Describe your experience on the course? Did you like it? How did it influence on your career?

iphone development company United States | Reply

8/18/2011 4:59:20 PM #

Porsche 918 Spyde

Hi, This is a good post,i really appreciate on your hard workings.I will be coming back soon, thanks for the great blog.

Porsche 918 Spyde United States | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the AgileCoder

The AgileCoder is Gary Ray; a Microsoft Platform developer in Salt Lake City, Utah.

By day I am a developer for the State of Utah - Department of Technology Services.

Click this link for info about my part time job as a Cyprus High School Basketball Coach.

Occasionally I ride a bike and teach a workshop on bike commuting.

profile for Gary.Ray on Stack Exchange, a network of free, community-driven Q&A sites

Tag cloud