Developer Joe Developer Joe - 2 months ago 16
C# Question

Visual Studio 2013 doesn't stop on a code line at error

In the previous versions of VS, if I have an error in my code and there was no exception handling - in debug mode - the debugger stops on the faulty code line, e.g. in case of an

ArgumentOutOfRangeException
.

But now the debugger only stops in the
app.g.i.cs
file where I have an
UnhandledException
handler.

What should I set to get back the old behaviour?

NDJ NDJ
Answer Source

control, alt + E to bring up exceptions, then check Common Language Runtime Exceptions thrown column. This will then break where the exception occurs rather than where it's handled.