I have a C# console application. In Program.cs, I make calls to a variety of services. If one of those services throws an Exception, VS breaks in Program.cs and not on the line that is actually responsible for the error. The modal doesn't even indicate which line threw. I understand that you can still get the trace etc., but usually VS breaks on the responsible line which makes debugging far easier.
How can I get VS to break on the "external code"?
CodePudding user response:
Open Exception Settings from Debug > Windows > Exception Settings
Search your exception name.
Check the checkbox before your exception.
Uncheck Enable Just My Code in Debug > Options > Debugging > General

