Reputation: 1668
Is there anyway to stop during debugging NServiceBus from pausing on every internal exception thrown?
I do not want to disable break on all exceptions as I need to catch exception in my code.
I also don't want to configure to not break on System.Net.WebException and System.Exception as we use web technologies and like to know when they have propergated in our code.
I guess I don't really understand why this seems only to be the case for NServiceBus and no other nuget plugin I use. Is it because we use the NServiceBus.Host.exe program?
Simlar questions
NServiceBus throws The remote server returned an error: (404) Not Found
WebException error 404 after upgrading NServiceBus to version 3.3.8
How to disable RavenDB replication
Exception breaks during start of debug Currently starting a project break 12 times, some dissapear during the day.
Notes
Upvotes: 0
Views: 370
Reputation: 4288
Unfortunately there is no way for NServiceBus to skip these exception.
These exceptions are thrown and handled by Raven internally.
The only way is for you to chance persistence to use NHibernate instead.
BTW, this question has been previously asked, see https://stackoverflow.com/a/5880940/90882
Upvotes: 0
Reputation: 18635
In Visual Studio, try Tools > Options > Debugging > General
, then look for Enable Just My Code
and make sure that is checked.
Failing that, check the settings in the Exceptions dialog (Debug > Exceptions
or Ctrl+Alt+E) but note that this option only appears when you have a project loaded.
Upvotes: 3