Home All Groups Group Topic Archive Search About

jump into code when exception occur during debug (in Try..)?

Author
22 Jun 2006 11:22 AM
mtczx232
VS2005 - VB

when we have code in try block, when exception occur during debug. the
debuger not jump into the code, before run the catch block. this
behavior make debugging difficult.

I not sure, but i remember another experience (maybe with VS2003) that
first jump into the code and if i decide to continue it go to catch
block!?

Have a way change this behavior.

Author
23 Jun 2006 3:57 PM
Dean
If the exception has already been raised, then it would jump to the catch
block.  Have you tried putting a breakpoint at the code in the start of the
try block and step through the code?

Show quote
"mtczx***@yahoo.com" wrote:

> VS2005 - VB
>
> when we have code in try block, when exception occur during debug. the
> debuger not jump into the code, before run the catch block. this
> behavior make debugging difficult.
>
> I not sure, but i remember another experience (maybe with VS2003) that
> first jump into the code and if i decide to continue it go to catch
> block!?
>
> Have a way change this behavior.
>
>
Author
25 Jun 2006 2:15 PM
Mike Blake-Knox
In article <1150975337.593971.37***@b68g2000cwa.googlegroups.com>, 
wrote:
> when we have code in try block, when exception occur during debug. the
> debuger not jump into the code, before run the catch block. this
> behavior make debugging difficult.

> I not sure, but i remember another experience (maybe with VS2003) that
> first jump into the code and if i decide to continue it go to catch
> block!?

> Have a way change this behavior.

Use the Exceptions item on the debugger's Debug menu to enable or disable
handling of First Chance Exceptions. This controls whether you break into
the debugger or just execute your catch block code when a specific
exception occurs.

Mike

AddThis Social Bookmark Button