{"id":4315,"date":"2016-11-18T08:49:25","date_gmt":"2016-11-18T00:49:25","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4315"},"modified":"2016-11-18T08:49:25","modified_gmt":"2016-11-18T00:49:25","slug":"%e6%95%99%e7%a8%8b%e5%a6%82%e4%bd%95%e9%99%8d%e4%bd%8e-delphi-%e7%bc%96%e7%a0%81%e5%90%8e%e7%9a%84-debug-%e7%89%88%e6%9c%ac%e7%9a%84%e7%a8%8b%e5%ba%8f%e4%bd%93%e7%a7%af","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4315","title":{"rendered":"[\u6559\u7a0b]\u5982\u4f55\u964d\u4f4e Delphi \u7f16\u7801\u540e\u7684 Debug \u7248\u672c\u7684\u7a0b\u5e8f\u4f53\u79ef"},"content":{"rendered":"<p>\u53c8\u662f\u4e00\u4e2a\u60b2\u4f24\u7684\u6559\u574f\u5b69\u5b50\u7684\u6545\u4e8b\uff1aDebug \u00a0\u7248\u672c\u7684\u4f53\u79ef\u592a\u5927\uff0c\u800c Release \u7248\u672c\u6709\u65f6\u5019\u5374\u6709\u95ee\u9898\uff0c\u4e0a\u5e1d\u77e5\u9053\u95ee\u9898\u51fa\u5728\u90a3\u513f\u4e86\uff0c\u53cd\u6b63 \u6211\u662f\u627e\u4e0d\u51fa\u6765\u4e86\uff0c\u5988\u5988\uff0c\u5feb\u544a\u8bc9\u6211\u600e\u4e48\u529e\uff1f:)<\/p>\n<p>\u5b9e\u9645\u4e0a\uff0cDebug \u7248\u672c\u672c\u8eab\u5e76\u4e0d\u4f1a\u6bd4 Release \u7248\u672c\u5927\u591a\u5c11\uff0c\u771f\u6b63\u5927\u7684\u539f\u56e0\u5728\u4e8e\u5185\u5d4c\u4e86\u5927\u91cf\u7684\u8c03\u8bd5\u7b26\u53f7\u4fe1\u606f\uff0c\u8fd9\u4e9b\u4fe1\u606f\u7528\u4e8e\u544a\u8bc9\u8c03\u8bd5\u5668\uff0c\u67d0\u4e2a\u5730\u5740\u5bf9\u5e94\u7684\u53d8\u91cf\u6216\u51fd\u6570\u540d\u53eb\u5565\uff0c\u67d0\u884c\u4ee3\u7801\u7f16\u8bd1\u540e\u7684\u673a\u5668\u7801\u4f4d\u7f6e\u7b49\u7b49\uff0c\u6211\u4eec\u8981\u60f3\u51cf\u5c11 Debug \u7248\u672c\u7684\u4f53\u79ef\uff0c\u4fee\u6539\u8fd9\u65b9\u9762\u7684\u8bbe\u7f6e\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\uff1a\u8fdb\u5165 Project &gt; Options &gt; Compiling\uff0c\u5c06 Debugging \u91cc\u7684 Debug Information \u8bbe\u7f6e\u4e3a No Debug Information\uff0cLocal Symbols \u8bbe\u7f6e\u4e3a false\uff0cSymbol reference info \u8bbe\u7f6e\u4e3a None\uff0cUse Debug .dcus \u4e5f\u8bbe\u7f6e\u4e3a false\uff0c\u518d\u7f16\u8bd1\u770b\u770b\uff0c\u6587\u4ef6\u7684\u4f53\u79ef\u5c31\u4f1a\u53d8\u7684\u548c Release \u76f8\u5dee\u65e0\u5df2\u4e86\u3002<br \/>\n<a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/DebugOptions.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4316\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/DebugOptions.jpg\" alt=\"debugoptions\" width=\"755\" height=\"593\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/DebugOptions.jpg 755w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/DebugOptions-300x236.jpg 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a>\u597d\u5427\uff0c\u628a\u620f\u5f88\u5feb\u53ef\u80fd\u522b\u4eba\u62c6\u7a7f\uff0c\u4f60\u4f1a\u53d1\u73b0 Debug \u6a21\u5f0f\u65e0\u6cd5\u8c03\u8bd5\uff0c\u8bbe\u7f6e\u65ad\u70b9\u4e86\uff0c\u8fd9\u4e2a\u5c31\u662f\u56e0\u4e3a\u6211\u4eec\u524d\u9762\u628a\u8c03\u8bd5\u4fe1\u606f\u79fb\u9664\u4e86\u9020\u6210\u7684\u3002\u6240\u4ee5\uff0c\u5982\u679c\u60f3\u8981\u6062\u590d\u8c03\u8bd5\u72b6\u6001\uff0c\u5c06\u4e0a\u9762\u7684\u51e0\u4e2a\u9009\u9879\u6062\u590d\u539f\u503c\u5c31\u597d\u4e86\u3002<\/p>\n<p>OK\uff0c\u5b9e\u9645\u4e0a Debug \u548c Release \u6a21\u5f0f\u7684\u6838\u5fc3\u533a\u522b\u5c31\u662f\u9009\u9879\u7684\u4e0d\u540c\uff0c\u6240\u4ee5\u5927\u5bb6\u5bf9\u6bd4\u4e0b\uff0c\u5f88\u5bb9\u6613\u5c31\u4f1a\u627e\u5230\u4e0d\u540c\u7684\u5730\u65b9\uff0c\u5c06\u5176\u8bbe\u7f6e\u4e00\u4e0b\u5c31\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c8\u662f\u4e00\u4e2a\u60b2\u4f24\u7684\u6559\u574f\u5b69\u5b50\u7684\u6545\u4e8b\uff1aDebug [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,603],"tags":[683,686,685,684],"class_list":["post-4315","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-603","tag-debug","tag-686","tag-685","tag-684"],"views":3707,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4315"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4315\/revisions"}],"predecessor-version":[{"id":4317,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4315\/revisions\/4317"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}