Can you ignore the exception from the third-party DLL IN SPECIFIC PLACE with the VS2008 debugger?

I use a third-party library (Fluent NHibernate) that throws a file-free exception on startup when I start with “break on all Common Runtime Exceptions” enabled (menu “Debug | Exceptions ...”).

I understand that I could just remove the exception from a specific “file not found”, but then I would not get a break if this happened somewhere else in my code.

Is there a way (attribute pragma ??) to suppress the exception, but only in one place that I know will this happen?

+3
source share
3 answers

, VS , , , - .

:

  • .

.

+2

SO .

, " ..." ( //). " " "".

" " Common Language Runtime Exceptions .

, , - , .

+6

Include only my code ... "is disabled (it is in Tools / Options / Debugging). Really does the trick

0
source

Source: https://habr.com/ru/post/1767232/


All Articles