Why does NSAssert break in main instead of in the code that call the assertion

后端 未结 2 594
隐瞒了意图╮
隐瞒了意图╮ 2020-12-21 13:13

I set this NSAssert

NSAssert(isStillLoadingArgument== [[self class] stillLoading],@\"Hmm.... we think isStill Loading is false or true and yet stillLoading i         


        
2条回答
  •  有刺的猬
    2020-12-21 14:07

    Configure the debugger to break on exceptions.

    When an assertion fails, it raises an exception. If nothing catches the exception, it terminates the program after unwinding the stack, leaving it at main().

提交回复
热议问题