{"id":17452,"date":"2017-03-17T14:32:27","date_gmt":"2017-03-17T18:32:27","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=17452"},"modified":"2017-03-17T14:32:27","modified_gmt":"2017-03-17T18:32:27","slug":"system-level-breakpoints-in-swift","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/03\/17\/system-level-breakpoints-in-swift\/","title":{"rendered":"System Level Breakpoints in Swift"},"content":{"rendered":"<p><a href=\"http:\/\/indiestack.com\/2017\/03\/system-level-breakpoints-in-swift\/\">Daniel Jalkut<\/a> (<a href=\"https:\/\/twitter.com\/danielpunkass\/status\/842779434507800579\">tweet<\/a>):<\/p>\n<blockquote cite=\"http:\/\/indiestack.com\/2017\/03\/system-level-breakpoints-in-swift\/\"><p>So, as a rule, Swift programmers who want to be advanced debuggers on iOS or Mac platforms, also need to develop an ability for mapping Swift method names back to their Objective-C equivalents. For a method like UIView.layoutSubviews, it&rsquo;s a pretty direct mapping back to &ldquo;-[UIView layoutSubviews]&rdquo;, but for many methods it&rsquo;s nowhere near as simple.<\/p>\n<p>[&#8230;]<\/p>\n<p>If the API has been rewritten using one of these rules, it&rsquo;s almost certain that the Swift name of the function is a subset of the ObjC method name. You can probably leverage the regex matching ability of lldb to zero in on the method you want to set a breakpoint on[&#8230;]<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut (tweet): So, as a rule, Swift programmers who want to be advanced debuggers on iOS or Mac platforms, also need to develop an ability for mapping Swift method names back to their Objective-C equivalents. For a method like UIView.layoutSubviews, it&rsquo;s a pretty direct mapping back to &ldquo;-[UIView layoutSubviews]&rdquo;, but for many methods it&rsquo;s [&hellip;]<\/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":[69,56,31,1380,317,30,1381,71,234,901],"class_list":["post-17452","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-debugging","tag-ios","tag-ios-10","tag-lldb","tag-mac","tag-macos-10-12","tag-programming","tag-regex","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17452","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=17452"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17452\/revisions"}],"predecessor-version":[{"id":17453,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17452\/revisions\/17453"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=17452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=17452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=17452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}