Groups | Blog | Home
all groups > vb.net > january 2007 >

vb.net : How to avoid exception breakpoint inside my reference assembly ?



Bruce
1/5/2007 10:41:58 PM
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?




--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
Cor Ligthert [MVP]
1/6/2007 8:44:11 AM
Bruce,

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

Cor

"Bruce" <Bruce@nospam.com> schreef in bericht
news:enDIXSUMHHA.4244@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

Bruce
1/6/2007 9:44:58 AM
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



[quoted text, click to view]


--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
Jay B. Harlow [MVP - Outlook]
1/7/2007 4:55:53 PM
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.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


[quoted text, click to view]
Cor Ligthert [MVP]
1/8/2007 12:50:36 AM
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 [MVP - Outlook]" <Jay_Harlow_MVP@tsbradley.net> schreef in
bericht news:uS1797qMHHA.3268@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

Jay B. Harlow [MVP - Outlook]
1/8/2007 10:01:52 PM
Bruce,
[quoted text, click to view]
If it gives you the results you expect, yes you did...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


[quoted text, click to view]
Bruce
1/8/2007 10:23:18 PM
[quoted text, click to view]

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?


--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
AddThis Social Bookmark Button