Hi Wen Yuan,
I don't get it. As I understand it, enabling "Just My Code" prevents me
from stepping into code that meets any of several criteria (optimized, no
symbols, etc.). It also prevents the debuger from breaking in code that
meets the "not my code" criteria if I click on the "break" button. What's
the connection between that behavior and whether or not I want the debugger
to break when a particular exception is unhandled?
> Hi Bob,
> Thanks for your post.
[quoted text clipped - 15 lines]
> Best regards,
> Wen Yuan
WenYuan Wang - 02 Feb 2007 11:19 GMT
Hi Bob,
Thanks for your reply.
If an exception is thrown and isn't handled in user code then this will
cause a break. So debugger will break in the following cases, if you
disable user-unhandled then no break happens.
Non-user frame1 <--- exception thrown here
User frame1
User frame2
Non-user frame2 <-- exception caught here
User frame1 <-- exception thrown here
Non-user frame1
Non-user frame2 <-- exception caught here
User frame2
Non-user frame3
User code - have symbols + is unoptiomized + no non-user attributes
The idea is that user may want to write a handler for the exception in
these cases to provide a better error message and continue for instance
instead of letting the exception be handled by a generic handler.
Please feel free to reply me if you have anything unclear and we will
follow up.
Have a great day.
Best regards,
Wen Yuan
Bob Altman - 04 Feb 2007 18:04 GMT
Thanks Wen Yuan! It finally occurred to me to press F1 while I was staring
at the Debug|Exceptions dialog. That took me to an MSDN Help page that
cleared up my (bone headed) confusion. I was missing the basic concept that
the user-unhandled column is equivalent to "Unhandled in "My Code" (as in
"Just My Code"). So obviously, turning off "Just My Code" turns off that
column.
I would imagine that I'm far from the only user who has seen this dialog and
not understood what that column really does. The dialog really should be
redesigned to say "Unhandled by My Code" (IMHO).
> Hi Bob,
> Thanks for your reply.
[quoted text clipped - 25 lines]
> Best regards,
> Wen Yuan
WenYuan Wang - 05 Feb 2007 11:08 GMT
Hi Bob,
Thanks for your reply. The name of column ("user-unhandled") is really
confusable. But I'm very glad to hear you have understand it. Please feel
free to reply me if you have any further question. I'm glad to work with
you.
Have a great day.
Best regards,
Wen Yuan