Make Visual Studio break on User (std::exception) Exceptions?

Viewed 1252

My code throws unhandled exceptions, but the debugger in Visual Studio only breaks on those thrown by the system.

For example, below the return value of getaddrinfo is not zero and my exception should be thrown first - in fact, if I place a breakpoint at line 171, it is hit - yet the debugger only breaks on the call to socket.

I know I have to add my own types explicitly, or else check All C++ Exceptions not in this list, in Exception Settings, but this is a std::exception I am throwing, and std::exception is checked.

How do I make the Visual Studio debugger break automatically on my exceptions?

enter image description here

1 Answers
Related