How do I set a breakpoint on an exception?
Ideally I want to be able to see the call stack and local variables from the code that threw the exception.
How do I set a breakpoint on an exception? Ideally I want to be
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t used Visual Studio for 2 years, but from memory:
Will bring exception management screen, make sure to check break on all exceptions, a must have imho 🙂
EDIT : My memory not that bad 🙂 Just check
ThrownonCommon Language Runtime Exceptionsif your are using .NET (CLR = .NET)EDIT 2 : By the way, since exceptions are generally a bad coding practice and should be avoided as possible, i suggest to let that option enabled all the time. If some exceptions just can’t be avoided (because of someone else, of course :D) just uncheck its type or ancestor in the exception type tree.