I am trying to use lldb for c++ debugging and I want to halt if an exception is thrown, like gdb’s catch throw, and I cannot find an equivalent in the lldb documentation.
I am trying to use lldb for c++ debugging and I want to halt
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.
In Xcode, you can set an Exception breakpoint (View > Navigators > Show Breakpoint Navigator, hit the + button in the bottom of the breakpoint list window to add a new breakpoint).
If you’re using command line lldb, put a breakpoint on
__cxa_throwfor C++ exception throws,objc_exception_throwfor Objective-C exception throws.For all c++ exceptions:
break set -E C++.