iOS and Mac objc helpers for debugging