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.
Comments
Post a Comment