This has been around forever, but I wonder if anyone has ever found a solution...
Sometimes I disable "Just My Code" (these days in conjunction with enabling SourceLink) and turn on "Break When Thrown" for all "Common Language Runtime Exceptions" in Visual Studio because I want to check for issues where exceptions are swallowed by a third party library.
After I'm done and RE-ENABLE "Just My Code", AND leave "Break When Thrown" for all "Common Language Runtime Exceptions" enabled, I sometimes STILL break when third party libraries throw HANDLED exceptions. Meaning, the third party library has a silent exception that I don't want to see, but Visual Studio breaks anyway. For example, the library might have an expected TCP connection timeout, but Visual Studio breaks anyway. I would only expect this to occur when Just My Code is DISABLED.
Usually I have to restart Visual Studio and sometimes clear all cached debugging information which slows down other stuff.
Has anyone found a way around this?
UPDATE: see screenshot demonstrating unexpected behavior. Just My Code is enabled, Break When Thrown is checked, and a handled exception in third party code is popping up anyway. If I restart Visual Studio (and sometimes clear the cache too), I stop getting prompted using the same settings. Seems like something is making that external library be considered "My Code" even after I disable Source Link.
Thanks.
