swift - Assertion or Runtime Error holds execution in thread instead of code-line -


whe using normal "assert()" statement xcode stops thread execution takes place.

i tried play around adding

exection breakpoints 

but still can't xcode stop @ line assertion happens.

e.g.

    let x:string? = nil     assert(x != nil ) 

one option add general exception breakpoint in breakpoints pane.

before adding exception breakpoint, xcode stops in app delegate mentioned, enabled stop on assert statement itself.

add exception breakpoint

xcode stopped on assertion


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -