want build debug tool monitor app, pause execution when bad things occur. dev can continue run program after notified problem.
may throw exception or use special signal?
i have tried raise(sigstop)
, looks good. backtrace showed in xcode not stop it. can make real time stop?
if fatal error comes, terminates itself. if want
1) break code execution: use breakpoints:
http://jeffreysambells.com/2014/01/14/using-breakpoints-in-xcode
2) log output:
- use nslog() objective-c
- use print() swift
Comments
Post a Comment