Search code examples
c++ciosxcode4

How do I step-over or continue after a c assert in ios/xcode?


I have searched, but cannot find how (or if) I can step over or continue after a c assert() in xcode 4/ios 5.0. I am using c++ not objective-c. Will I need to define my own assert to achieve this?

Thanks~


Solution

  • Asserts aren't normally meant to be ignored. They are there for the programmer to communicate to other programmers that "this should never, ever happen". If you're curious to see what happens if you continue past the assert, comment it out and see how your program behaves after the point where it would normally fail.