Currently, my Xcode4 does not stop at NSAssert failure. How can I make it stop at NSAssert failure again?
Currently, my Xcode4 does not stop at NSAssert failure. How can I make it
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.
Now you will stop in the debugger as soon as NSAssert fires. In my testing, it goes to the nearest source code and doesn’t just show you the assembly where you set the breakpoint.
More Generically, you could do this:
This may be more or less useful depending on your code.
See also the XCode 4 documentation result for “Adding an Exception Breakpoint”