How to avoid exception breakpoint inside my reference assembly ?

B

Bruce

I have a reference assembly that I wrote. The assembly can throw
exceptions. I am handling these exceptions but, when running my code
from VB, VB still insists on setting a breakpoint where the exception is
being thrown inside the assembly.

Is there anyway to avoid this? If so how?
 
C

Cor Ligthert [MVP]

Bruce,

Put off the breakpoint outside your debugging action.
(I assume it is an ASPNET project)

Cor
 
B

Bruce

What do you mean by "put off"?

I am not setting this breakpoint. VB is automatically setting it at the
point where the exception is being thrown.

Bruce
 
J

Jay B. Harlow [MVP - Outlook]

Bruce,
It sounds like you have the "Break when an exception is Thrown" option
turned on.

Use "Debug - Exceptions" to change this option. On the "Common Language
Runtime Exceptions" node check the "Thrown" checkbox if you want to break on
all exceptions, uncheck the checkbox if you don't.

Most of the time I prefer this option to be off, once in a while its helpful
to have it on. For example when debugging my exception handlers themselves.
 
C

Cor Ligthert [MVP]

Doh,

That can it be, I knew it and I forgot it. I would not have thougth that
about this one.
Greath Jay.

Cor

Jay B. Harlow said:
Bruce,
It sounds like you have the "Break when an exception is Thrown" option
turned on.

Use "Debug - Exceptions" to change this option. On the "Common Language
Runtime Exceptions" node check the "Thrown" checkbox if you want to break
on all exceptions, uncheck the checkbox if you don't.

Most of the time I prefer this option to be off, once in a while its
helpful to have it on. For example when debugging my exception handlers
themselves.
 
B

Bruce

Jay said:
Bruce,
It sounds like you have the "Break when an exception is Thrown" option
turned on.

Use "Debug - Exceptions" to change this option. On the "Common Language
Runtime Exceptions" node check the "Thrown" checkbox if you want to
break on all exceptions, uncheck the checkbox if you don't.

Most of the time I prefer this option to be off, once in a while its
helpful to have it on. For example when debugging my exception handlers
themselves.

Thanks they were all set to "User Defined"

I unchecked them an it seems to have solved the problem. Did I do the
correct thing?
 
J

Jay B. Harlow [MVP - Outlook]

Bruce,
I unchecked them an it seems to have solved the problem. Did I do the
correct thing?
If it gives you the results you expect, yes you did...
 

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