Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2007

Tip: Looking for answers? Try searching our database.

Exceptons when debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack Jackson - 25 Sep 2007 19:00 GMT
My VB 2005 winforms application has an Application.ThreadException
handler to catch any unhandled exception.

When debugging, the debugger doesn't stop when I get an exception,
control passes to my application exception handler.  Currently I
comment out the handler to be able to get the debugger to stop when an
unhandled exception occurs.

Ideally I would like to have the debugger stop when any exception
occurs, then optionally be able to proceed by having the exception
bubble up.  Is this possible?
Marc Vangrieken - 26 Sep 2007 10:57 GMT
Hi,

You can make VS2005 break when an exception is thrown. This can be
done via the Debug -> Exceptions.... menu item.

This doesn't change the program flow however, exceptions handlers
(catch and finaly clauses) will still be executed. You can't
automatically have the equivalent of "commenting out the handler".

Mvg,

> My VB 2005 winforms application has an Application.ThreadException
> handler to catch any unhandled exception.
[quoted text clipped - 7 lines]
> occurs, then optionally be able to proceed by having the exception
> bubble up.  Is this possible?
Jack Jackson - 26 Sep 2007 16:39 GMT
I don't want to "comment out the handler", I just do that now because
it is the only way I can get control in the debugger when an exception
occurs.

I did not know there was an Exceptions item available for the Debug
menu - it was not present in my VS.  By adding it, and poking around
in the Help, I managed to get this to work.

Thank you

>Hi,
>
[quoted text clipped - 18 lines]
>> occurs, then optionally be able to proceed by having the exception
>> bubble up.  Is this possible?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.