{"id":594,"date":"2018-02-23T23:40:16","date_gmt":"2018-02-23T15:40:16","guid":{"rendered":"http:\/\/60.205.208.74\/2018\/02\/23\/ios%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e8%b0%83%e8%af%95\/"},"modified":"2018-02-23T23:40:16","modified_gmt":"2018-02-23T15:40:16","slug":"ios%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/www.puzi7.net\/?p=594","title":{"rendered":"iOS\u5e94\u7528\u7a0b\u5e8f\u8c03\u8bd5"},"content":{"rendered":"<span itemprop=\"description\"><div class=\"article-body\">\n<div class=\"article-intro\" id=\"content\">\n<h1>IOS\u5e94\u7528\u7a0b\u5e8f\u8c03\u8bd5<\/h1>\n<hr>\n<h2>\u7b80\u4ecb<\/h2>\n<p>\u5f53\u6211\u4eec\u505a\u5e94\u7528\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u4f1a\u72af\u5404\u79cd\u9519\u8bef\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5404\u79cd\u4e0d\u540c\u7684\u9519\u8bef\u3002\u56e0\u6b64\uff0c\u4e3a\u4e86\u4fee\u590d\u8fd9\u4e9b\u9519\u8bef\u6216\u7f3a\u9677\uff0c\u6211\u4eec\u9700\u8981\u6765\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<h3>\u9009\u62e9\u4e00\u4e2a\u8c03\u8bd5\u5668<\/h3>\n<p>Xcode\u4e2d\u8c03\u8bd5\u5668\u5373 GDB \u548c LLDB \u8c03\u8bd5\u5668\uff0cGDB \u662f\u9ed8\u8ba4\u7684\u3002 LLDB\u662f\u4e00\u4e2a\u8c03\u8bd5\u5668\u662fLLVM\u5f00\u6e90\u7684\u7f16\u8bd1\u5668\u9879\u76ee\u7684\u4e00\u90e8\u5206\u3002\u60a8\u53ef\u4ee5\u66f4\u6539\u8c03\u8bd5\uff0c\u7f16\u8f91\u6d3b\u52a8\u8ba1\u5212\u9009\u9879\u3002<\/p>\n<h3>\u5982\u4f55\u67e5\u627e\u7f16\u7801\u9519\u8bef\uff1f<\/h3>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u5efa\u7acb\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee3\u7801\u88ab\u7f16\u8bd1\u5668\u7f16\u8bd1\uff0c\u6240\u6709\u7684\u6d88\u606f\uff0c\u9519\u8bef\u548c\u8b66\u544a\u5c06\u663e\u793a\u4ee5\u53ca\u9519\u8bef\u7684\u539f\u56e0\uff0c\u6211\u4eec\u53ef\u4ee5\u7ea0\u6b63\u4ed6\u4eec\u3002\u53ef\u4ee5\u70b9\u51fb product\uff0c\u7136\u540e\u70b9\u51fb&#8221;\u5206\u6790&#8221;\uff0c\u5c06\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u53ef\u80fd\u53d1\u751f\u7684\u95ee\u9898\u3002<\/p>\n<h3>\u8bbe\u7f6e\u65ad\u70b9<\/h3>\n<p>\u65ad\u70b9\u5e2e\u52a9\u6211\u4eec\u4e86\u89e3\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u5bf9\u8c61\uff0c\u5e2e\u52a9\u6211\u4eec\u627e\u51fa\u8bb8\u591a\u7f3a\u9677\uff0c\u5305\u62ec\u903b\u8f91\u95ee\u9898\u7684\u4e0d\u540c\u72b6\u6001\u3002\u6211\u4eec\u53ea\u9700\u8981\u70b9\u51fb\u521b\u5efa\u4e00\u4e2a\u65ad\u70b9\u7684\u884c\u53f7\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u5e76\u62d6\u52a8\u5b83\u5220\u9664\u65ad\u70b9\u3002\u5982\u4e0b\u6240\u793a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full\" alt=\"debug_Breakpoint\" src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2013\/11\/debug_Breakpoint.jpg\" width=\"560\" height=\"394\" data-pinit=\"registered\"><\/p>\n<p>\u5f53\u6211\u4eec\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u5e76\u9009\u62e9playVideo\uff0c\u6309\u94ae\u7684\u5e94\u7528\u7a0b\u5e8f\u5c06\u88ab\u6682\u505c\uff0c\u6211\u4eec\u6765\u5206\u6790\u4e00\u4e0b\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\u3002\u5f53\u65ad\u70b9\u88ab\u89e6\u53d1\u65f6\uff0c\u6211\u4eec\u5c06\u5f97\u5230\u4e00\u4e2a\u8f93\u51fa\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full\" alt=\"debug_BreakpointStop\" src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2013\/11\/debug_BreakpointStop.jpg\" width=\"560\" height=\"452\" data-pinit=\"registered\"><\/p>\n<p>\u53ef\u4ee5\u8f7b\u677e\u5730\u786e\u5b9a\u54ea\u4e2a\u7ebf\u7a0b\u89e6\u53d1\u65ad\u70b9\u3002\u5728\u5e95\u90e8\u53ef\u4ee5\u770b\u5230\u5bf9\u8c61\uff0c\u5982self\uff0csender\u7b49\uff0c\u8fd9\u4e9b\u6301\u6709\u76f8\u5e94\u7684\u5bf9\u8c61\u7684\u503c\uff0c\u6211\u4eec\u53ef\u4ee5\u5c55\u5f00\u4e00\u4e9b\u8fd9\u4e9b\u5bf9\u8c61\uff0c\u770b\u770b\u4ed6\u4eec\u6bcf\u4e2a\u7684\u72b6\u6001\u662f\u4ec0\u4e48\u3002<\/p>\n<p>\u8981\u7ee7\u7eed\u5e94\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u5728\u8c03\u8bd5\u533a\u9009\u62e9\u7ee7\u7eed\u6309\u94ae\uff08\u6700\u5de6\u8fb9\u7684\u6309\u94ae\uff09\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5176\u4ed6\u9009\u9879\u5305\u62ec\u6b65\u9aa4\u548c\u5355\u6b65\u8df3\u8fc7\n<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.tutorialspoint.com\/ios\/images\/breakpointBar.jpg\"><\/p>\n<h3>\u5f02\u5e38\u65ad\u70b9<\/h3>\n<p>\u6211\u4eec\u4e5f\u6709\u5f02\u5e38\u65ad\u70b9\uff0c\u89e6\u53d1\u5e94\u7528\u7a0b\u5e8f\u505c\u6b62\u53d1\u751f\u5f02\u5e38\u7684\u4f4d\u7f6e\u3002\u901a\u8fc7\u9009\u62e9\u8c03\u8bd5\u5bfc\u822a\u540e\u9009\u62e9&#8221;+&#8221;\u6309\u94ae\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u5f02\u5e38\u65ad\u70b9\u3002\u5c06\u5f97\u5230\u4e0b\u9762\u7684\u7a97\u53e3<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full\" alt=\"debug_ExceptionBreakpoint\" src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2013\/11\/debug_ExceptionBreakpoint.jpg\" width=\"250\" height=\"697\" data-pinit=\"registered\"><\/p>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u9700\u8981\u9009\u62e9&#8221; Exception Breakpoint (\u6dfb\u52a0\u5f02\u5e38)&#8221;\u65ad\u70b9\uff0c\u5b83\u4f1a\u663e\u793a\u4e0b\u9762\u7684\u7a97\u53e3<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full\" alt=\"debug_ExceptionBreakpointAll\" src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2013\/11\/debug_ExceptionBreakpointAll.jpg\" width=\"470\" height=\"210\" data-pinit=\"registered\"><\/p>\n<h3>\u4e0b\u4e00\u6b65\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p>\n\u4f60\u53ef\u4ee5\u5728 <a rel=\"nofollow\" href=\"http:\/\/developer.apple.com\/library\/ios\/#documentation\/ToolsLanguages\/Conceptual\/Xcode4UserGuide\/Introduction\/Introduction.html\" target=\"_blank\" title=\"Xcode 4 user guide\">Xcode 4 \u7528\u6237\u6307\u5357<\/a> \u77e5\u9053\u66f4\u591a\u5173\u4e8e\u8c03\u8bd5\u548c\u5176\u4ed6Xcode\u529f\u80fd\u7684\u77e5\u8bc6\u3002<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<span>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"><span itemprop=\"description\">IOS\u5e94\u7528\u7a0b\u5e8f\u8c03\u8bd5 \u7b80\u4ecb \u5f53\u6211\u4eec\u505a\u5e94\u7528\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u4f1a\u72af\u5404\u79cd\u9519\u8bef\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5404\u79cd\u4e0d\u540c\u7684&hellip;<\/span><\/p>\n<p class=\"more-link-p btn-align-right\"><a class=\"green zoom-btn\" href=\"https:\/\/www.puzi7.net\/?p=594\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,26],"tags":[74,93],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-ios","category-mobile","tag-ios","tag-mobile","zoom-theme-has-thumb"],"_links":{"self":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=594"}],"version-history":[{"count":0,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}