1

I'm troubleshooting a solution which a very large code base using step by site debugging in Visual Studio. There are a lot of things going on in the background and a client application makes regular calls to the backend. When I'm debugging the calls create exceptions. So when I'm stepping through the code suddenly I jump to some exception handling code that among other things logs.

This makes it very hard to find the exceptions that has to do with the issue I'm troubleshooting. Is there some way to make the debug stepping ignore what is not part of the thread I am currently in?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Daarwin
  • 2,896
  • 7
  • 39
  • 69

1 Answers1

0

Is there some way to make the debugg steping ignore what is not part of the thread i am currently in

You can use Exception Settings to ignore those exceptions, Debug->Windows->Exception Settings (CTRL+ALT+E).

You can set whether these exceptions always break, or only break when it's an unhandled exception:

Debug + Exceptions, click the Add Button. Set the type to "Common Language Runtime Exceptions" and the Name to the full name of the custom exception, including the namespace name. You can now untick the Thrown box for this one, expand the node first if necessary.

Certify: How to tell the debugger to ignore breaking on thrown exceptions?

Besides, you can check the blog The New Exception Settings Window in Visual Studio 2015 for some more details.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135