Error handling

  • Thread starter Thread starter Michel Vanderbeke
  • Start date Start date
M

Michel Vanderbeke

Hello,

In all my VB.NET 2005 routines, I already inserted a Try...Catch routine in
order to handle my errors.
Is it possible - despite the presence of the Try...Catch routine, to let the
program break on every error thus giving me the opportunity to adapt my
code?

Many thanks and greetings,

Michel
 
Dear Michel,
It is difficult to handle errors without proper Exception handling
becuase when ever any error occur it provide you error window.
This is good practice to use Try...Catch in evey function/event.
 
Goto menu Debug > Exceptions. Then check all the checkboxes under the
colum 'Thrown' so that program breaks even if you have handled the
error in code.

Regards,

Sachin Palewar
(Certified Scrum Master)

Palewar Techno Solutions
(Mobile Solutions for Your Business)
www.palewar.com
 
Dear Michel,
It is difficult to handle errors without proper Exception handling
becuase when ever any error occur it provide you error window.
This is good practice to use Try...Catch in evey function/event.

I disagree, I prefer to catch the exceptions that have a good chance
of occurring, and letting a global exception handler handle the rest.
IMO it makes my code much more readable than having every method
wrapped in a try catch block.

Thanks,

Seth Rowe
 
Hello,

In all my VB.NET 2005 routines, I already inserted a Try...Catch routine in
order to handle my errors.
Is it possible - despite the presence of the Try...Catch routine, to let the
program break on every error thus giving me the opportunity to adapt my
code?

Many thanks and greetings,

Michel

Go to the Debug menu and click on Exceptions. Then you can set the ide
to break on an exception when it's thrown as well as unhandled.

Thanks,

Seth Rowe
 
Back
Top