{"id":11592,"date":"2015-06-30T18:08:24","date_gmt":"2015-06-30T22:08:24","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=11592"},"modified":"2015-07-03T19:59:26","modified_gmt":"2015-07-03T23:59:26","slug":"debugging-exceptions-in-xcode","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/06\/30\/debugging-exceptions-in-xcode\/","title":{"rendered":"Debugging Exceptions in Xcode"},"content":{"rendered":"<p><a href=\"http:\/\/natashatherobot.com\/xcode-debugging-trick\/\">Natasha Murashev<\/a>:<\/p>\n<blockquote cite=\"http:\/\/natashatherobot.com\/xcode-debugging-trick\/\">\n<p>Just type <code>po $arg1<\/code> into the debug area&nbsp;to get the human-readable version of the error (in this case, the nib is invalid) [&#8230;] Finally, you can add the <code>po $arg1<\/code> command to your Exception Breakpoint so it&rsquo;s just automatic.<\/p>\n<\/blockquote>\n<p>Whereas, otherwise Swift will crash with no useful information when there&rsquo;s an uncaught exception.<\/p>","protected":false},"excerpt":{"rendered":"<p>Natasha Murashev: Just type po $arg1 into the debug area&nbsp;to get the human-readable version of the error (in this case, the nib is invalid) [&#8230;] Finally, you can add the po $arg1 command to your Exception Breakpoint so it&rsquo;s just automatic. Whereas, otherwise Swift will crash with no useful information when there&rsquo;s an uncaught exception.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[56,31,30,71,901,226],"class_list":["post-11592","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-debugging","tag-ios","tag-mac","tag-programming","tag-swift-programming-language","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=11592"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11592\/revisions"}],"predecessor-version":[{"id":11600,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11592\/revisions\/11600"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=11592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=11592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=11592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}