HELP: Debugging ApplicationEvents.UnhandledException???

G

Guest

Hi all,

When I'm debugging my application in VS.NET 2005, the debugger intercepts
all unhandled exceptions and does not break into
ApplicationEvents.UnhandledException.

How do I debug ApplicationEvents.UnhandledException? I have some elaborate
code in there which I would like to test.

ApplicationEvents.UnhandledException only seems to be executed if I do not
have a debugger attached.

Thanks!
 
G

Guest

Hi all,

When I'm debugging my application in VS.NET 2005, the debugger
intercepts all unhandled exceptions and does not break into
ApplicationEvents.UnhandledException.

How do I debug ApplicationEvents.UnhandledException? I have some
elaborate code in there which I would like to test.

ApplicationEvents.UnhandledException only seems to be executed if I do
not have a debugger attached.

Thanks!


Just bumping up the post ... anyone know how?

Thanks!
 
R

RobinS

You could run it w/o debugging. (Debug/Start without debugging).

Robin S.
---------------------------------
 
R

Randy

I'm just a beginner so take this with a grain of salt:
I think you want to test your exception handlers? What about using Err.Raise
Example:
Try
Err.Raise(61) 'raise disk full error
Catch when Err.Number = 61
MsgBox("Error: Disk is full")
End Try

Randy
 
G

Guest

I'm just a beginner so take this with a grain of salt:
I think you want to test your exception handlers? What about using
Err.Raise Example:
Try
Err.Raise(61) 'raise disk full error
Catch when Err.Number = 61
MsgBox("Error: Disk is full")
End Try

Hi Randy, I'm already testing my exceptions through out my application.

I would like to debug my global exception handler (for cases where my error
handling falls through).

Unfortunately it seems while in debug mode, VS.NET takes over the global
handler... and doesn't allow me to debug my custom code :-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top