{"id":163,"date":"2006-08-09T15:29:19","date_gmt":"2006-08-09T23:29:19","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=163"},"modified":"2006-08-09T16:43:59","modified_gmt":"2006-08-10T00:43:59","slug":"xcode-debugging-tips","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2006\/08\/xcode-debugging-tips\/","title":{"rendered":"Xcode debugging tips"},"content":{"rendered":"<p id=\"top\" \/>It might be nice to note a few Xcode debugging things that I tend to do. Frequently, I&#8217;ll want to break on a specific symbol, like <\/p>\n<pre class=\"code\">-[NSException raise]<\/pre>\n<p>Well, there are several ways to do this.<br \/>\nOne way is to drop to GDB and type \u00e2\u20ac\u0153b -[NSException raise]\u00e2\u20ac\u009d.<br \/>\nAnother way is to bring up your breakpoints window in Xcode and add a symbolic breakpoint:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/double_click_to_add_symbol.png\" height=\"25\" width=\"365\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Double Click To Add Symbol\" \/><\/p>\n<p>and type in the same thing, \u00e2\u20ac\u0153-[NSException raise]\u00e2\u20ac\u009d.<\/p>\n<p>But wait! You can be lazy. Just type \u00e2\u20ac\u0153raise\u00e2\u20ac\u009d and Xcode will then prompt you to select the right symbol:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/Select_the_right_raise.png\" height=\"270\" width=\"430\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Select The Right Raise\" \/><\/p>\n<p>You can also do this for a generic symbol, like \u00e2\u20ac\u0153drawRect:\u00e2\u20ac\u009d and then select just the one you want:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/select_draw_rect.png\" height=\"297\" width=\"430\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Select Draw Rect\" \/><\/p>\n<p>Simple, and easy! Let Xcode do a lot of the work for you.<br \/>\nSome things to note:<br \/>\n1. Don&#8217;t bother typing the [ and ], or the minus or plus<br \/>\n2. Be sure to type the symbol name with the correct case and :&#8217;s.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It might be nice to note a few Xcode debugging things that I tend to do. Frequently, I&#8217;ll want to break on a specific symbol, like -[NSException raise] Well, there are several ways to do&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2006\/08\/xcode-debugging-tips\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4,6,1],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-apple","category-cocoa","category-general"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":0,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}