{"id":10006399,"date":"2022-09-05T13:14:47","date_gmt":"2022-09-05T05:14:47","guid":{"rendered":"https:\/\/ityet.com\/?p=10006399"},"modified":"2022-09-05T13:14:47","modified_gmt":"2022-09-05T05:14:47","slug":"%e5%8f%b2%e4%b8%8a%e6%9c%80%e5%85%a8%e7%9a%84-idea-debug-%e8%b0%83%e8%af%95%e6%8a%80%e5%b7%a7%ef%bc%88%e8%b6%85%e8%af%a6%e7%bb%86%ef%bc%81%e5%bb%ba%e8%ae%ae%e6%94%b6%e8%97%8f%ef%bc%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006399","title":{"rendered":"\u53f2\u4e0a\u6700\u5168\u7684 IDEA Debug \u8c03\u8bd5\u6280\u5de7\uff08\u8d85\u8be6\u7ec6\uff01\u5efa\u8bae\u6536\u85cf\uff01\uff09"},"content":{"rendered":"<p>\u6765\u6e90\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=fEPFnpeIIAsAdVXb8Nl9AA%3D%3D.Cm6tBMWQcskNKNGFPmPVeuHZWqQGNtMZHK18nuefi68S0mAMWOVnE7RdhOPJ6uBh\" rel=\"nofollow\">https:\/\/www.cnblogs.com\/chian&#8230;<\/a><\/p>\n<p>Debug\u7528\u6765\u8ffd\u8e2a\u4ee3\u7801\u7684\u8fd0\u884c\u6d41\u7a0b\uff0c\u901a\u5e38\u5728\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u5f02\u5e38\uff0c\u542f\u7528Debug\u6a21\u5f0f\u53ef\u4ee5\u5206\u6790\u5b9a\u4f4d\u5f02\u5e38\u53d1\u751f\u7684\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u53c2\u6570\u7684\u53d8\u5316\u3002\u901a\u5e38\u6211\u4eec\u4e5f\u53ef\u4ee5\u542f\u7528Debug\u6a21\u5f0f\u6765\u8ddf\u8e2a\u4ee3\u7801\u7684\u8fd0\u884c\u6d41\u7a0b\u53bb\u5b66\u4e60\u4e09\u65b9\u6846\u67b6\u7684\u6e90\u7801\u3002<\/p>\n<p>\u6240\u4ee5\u5b66\u4e60\u4e0b\u5982\u4f55\u5728Intellij IDEA\u4e2d\u4f7f\u7528\u597dDebug\uff0c\u4e3b\u8981\u5305\u62ec\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>Debug\u5f00\u7bc7<\/li>\n<li>\u57fa\u672c\u7528\u6cd5&#038;\u5feb\u6377\u952e<\/li>\n<li>\u53d8\u91cf\u67e5\u770b<\/li>\n<li>\u8ba1\u7b97\u8868\u8fbe\u5f0f<\/li>\n<li>\u667a\u80fd\u6b65\u5165<\/li>\n<li>\u65ad\u70b9\u6761\u4ef6\u8bbe\u7f6e<\/li>\n<li>\u591a\u7ebf\u7a0b\u8c03\u8bd5<\/li>\n<li>\u56de\u9000\u65ad\u70b9<\/li>\n<li>\u4e2d\u65adDebug<\/li>\n<li>\u9644\uff1aJRebel\u6fc0\u6d3b<\/li>\n<\/ul>\n<h3><strong>\u4e00\u3001Debug\u5f00\u7bc7<\/strong><\/h3>\n<p>\u9996\u5148\u770b\u4e0bIDEA\u4e2dDebug\u6a21\u5f0f\u4e0b\u7684\u754c\u9762\u3002<\/p>\n<p>\u514d\u8d39\u83b7\u53d6\u6b63\u7248\u6fc0\u6d3b\u7801\u5efa\u8bae\u770b\u4e0b\u8fd9\u7bc7\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=QvpyqNfq7421%2FjNLJi9IVw%3D%3D.Qdq4%2F5d4iW1bVVjCAoa2FcjQSqvHyatYZBJN45nftJusZxM2Uc%2FaFya9m4zFsIVePEVBOE79F7YWD%2F5ZpzppQw%3D%3D\" rel=\"nofollow\">https:\/\/www.javastack.cn\/intellij-idea-reactivation-succeed\/<\/a>\u3002<\/p>\n<p>\u5982\u4e0b\u662f\u5728IDEA\u4e2d\u542f\u52a8Debug\u6a21\u5f0f\uff0c\u8fdb\u5165\u65ad\u70b9\u540e\u7684\u754c\u9762\uff0c\u6211\u8fd9\u91cc\u662fWindows\uff0c\u53ef\u80fd\u548cMac\u7684\u56fe\u6807\u7b49\u4f1a\u6709\u4e9b\u4e0d\u4e00\u6837\u3002\u5c31\u7b80\u5355\u8bf4\u4e0b\u56fe\u4e2d\u6807\u6ce8\u76848\u4e2a\u5730\u65b9\uff1a<\/p>\n<ol>\n<li>\u4ee5Debug\u6a21\u5f0f\u542f\u52a8\u670d\u52a1\uff0c\u5de6\u8fb9\u7684\u4e00\u4e2a\u6309\u94ae\u5219\u662f\u4ee5Run\u6a21\u5f0f\u542f\u52a8\u3002\u5728\u5f00\u53d1\u4e2d\uff0c\u6211\u4e00\u822c\u4f1a\u76f4\u63a5\u542f\u52a8Debug\u6a21\u5f0f\uff0c\u65b9\u4fbf\u968f\u65f6\u8c03\u8bd5\u4ee3\u7801\u3002<\/li>\n<li>\u65ad\u70b9\uff1a\u5728\u5de6\u8fb9\u884c\u53f7\u680f\u5355\u51fb\u5de6\u952e\uff0c\u6216\u8005\u5feb\u6377\u952eCtrl+F8 \u6253\u4e0a\/\u53d6\u6d88\u65ad\u70b9\uff0c\u65ad\u70b9\u884c\u7684\u989c\u8272\u53ef\u81ea\u5df1\u53bb\u8bbe\u7f6e\u3002<\/li>\n<li>Debug\u7a97\u53e3\uff1a\u8bbf\u95ee\u8bf7\u6c42\u5230\u8fbe\u7b2c\u4e00\u4e2a\u65ad\u70b9\u540e\uff0c\u4f1a\u81ea\u52a8\u6fc0\u6d3bDebug\u7a97\u53e3\u3002\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u6fc0\u6d3b\uff0c\u53ef\u4ee5\u53bb\u8bbe\u7f6e\u91cc\u8bbe\u7f6e\uff0c\u5982\u56fe1.2\u3002<\/li>\n<li>\u8c03\u8bd5\u6309\u94ae\uff1a\u4e00\u5171\u67098\u4e2a\u6309\u94ae\uff0c\u8c03\u8bd5\u7684\u4e3b\u8981\u529f\u80fd\u5c31\u5bf9\u5e94\u7740\u8fd9\u51e0\u4e2a\u6309\u94ae\uff0c\u9f20\u6807\u60ac\u505c\u5728\u6309\u94ae\u4e0a\u53ef\u4ee5\u67e5\u770b\u5bf9\u5e94\u7684\u5feb\u6377\u952e\u3002\u5728\u83dc\u5355\u680fRun\u91cc\u53ef\u4ee5\u627e\u5230\u540c\u6837\u7684\u5bf9\u5e94\u7684\u529f\u80fd\uff0c\u5982\u56fe1.4\u3002<\/li>\n<li>\u670d\u52a1\u6309\u94ae\uff1a\u53ef\u4ee5\u5728\u8fd9\u91cc\u5173\u95ed\/\u542f\u52a8\u670d\u52a1\uff0c\u8bbe\u7f6e\u65ad\u70b9\u7b49\u3002<\/li>\n<li>\u65b9\u6cd5\u8c03\u7528\u6808\uff1a\u8fd9\u91cc\u663e\u793a\u4e86\u8be5\u7ebf\u7a0b\u8c03\u8bd5\u6240\u7ecf\u8fc7\u7684\u6240\u6709\u65b9\u6cd5\uff0c\u52fe\u9009\u53f3\u4e0a\u89d2\u7684[Show All Frames]\u6309\u94ae\uff0c\u5c31\u4e0d\u4f1a\u663e\u793a\u5176\u5b83\u7c7b\u5e93\u7684\u65b9\u6cd5\u4e86\uff0c\u5426\u5219\u8fd9\u91cc\u4f1a\u6709\u4e00\u5927\u5806\u7684\u65b9\u6cd5\u3002<\/li>\n<li>Variables\uff1a\u5728\u53d8\u91cf\u533a\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u65ad\u70b9\u4e4b\u524d\u7684\u5f53\u524d\u65b9\u6cd5\u5185\u7684\u53d8\u91cf\u3002<\/li>\n<li>Watches\uff1a\u67e5\u770b\u53d8\u91cf\uff0c\u53ef\u4ee5\u5c06Variables\u533a\u4e2d\u7684\u53d8\u91cf\u62d6\u5230Watches\u4e2d\u67e5\u770b<\/li>\n<\/ol>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBH0\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe1.1]<\/p>\n<p>\u5728\u8bbe\u7f6e\u91cc\u52fe\u9009Show debug window on breakpoint\uff0c\u5219\u8bf7\u6c42\u8fdb\u5165\u5230\u65ad\u70b9\u540e\u81ea\u52a8\u6fc0\u6d3bDebug\u7a97\u53e3<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHZ\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe1.2]<\/p>\n<p>\u5982\u679c\u4f60\u7684IDEA\u5e95\u90e8\u6ca1\u6709\u663e\u793a\u5de5\u5177\u680f\u6216\u72b6\u6001\u680f\uff0c\u53ef\u4ee5\u5728View\u91cc\u6253\u5f00\uff0c\u663e\u793a\u51fa\u5de5\u5177\u680f\u4f1a\u65b9\u4fbf\u6211\u4eec\u4f7f\u7528\u3002\u53ef\u4ee5\u81ea\u5df1\u53bb\u5c1d\u8bd5\u4e0b\u8fd9\u56db\u4e2a\u9009\u9879\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHY\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe1.3]<\/p>\n<p>\u5728\u83dc\u5355\u680fRun\u91cc\u6709\u8c03\u8bd5\u5bf9\u5e94\u7684\u529f\u80fd\uff0c\u540c\u65f6\u53ef\u4ee5\u67e5\u770b\u5bf9\u5e94\u7684\u5feb\u6377\u952e\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHX\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe1.4]<\/p>\n<h3><strong>\u4e8c\u3001\u57fa\u672c\u7528\u6cd5&#038;\u5feb\u6377\u952e<\/strong><\/h3>\n<p>Debug\u8c03\u8bd5\u7684\u529f\u80fd\u4e3b\u8981\u5bf9\u5e94\u7740\u56fe\u4e00\u4e2d4\u548c5\u4e24\u7ec4\u6309\u94ae\uff1a<\/p>\n<p><strong>1\u3001\u9996\u5148\u8bf4\u7b2c\u4e00\u7ec4\u6309\u94ae\uff0c\u51718\u4e2a\u6309\u94ae\uff0c\u4ece\u5de6\u5230\u53f3\u4f9d\u6b21\u5982\u4e0b\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHW\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe2.1]<\/p>\n<ul>\n<li><code>Show Execution Point (Alt + F10)<\/code>\uff1a\u5982\u679c\u4f60\u7684\u5149\u6807\u5728\u5176\u5b83\u884c\u6216\u5176\u5b83\u9875\u9762\uff0c\u70b9\u51fb\u8fd9\u4e2a\u6309\u94ae\u53ef\u8df3\u8f6c\u5230\u5f53\u524d\u4ee3\u7801\u6267\u884c\u7684\u884c\u3002<\/li>\n<li><code>Step Over (F8)<\/code>\uff1a\u6b65\u8fc7\uff0c\u4e00\u884c\u4e00\u884c\u5730\u5f80\u4e0b\u8d70\uff0c\u5982\u679c\u8fd9\u4e00\u884c\u4e0a\u6709\u65b9\u6cd5\u4e0d\u4f1a\u8fdb\u5165\u65b9\u6cd5\u3002<\/li>\n<li><code>Step Into (F7)<\/code>\uff1a\u6b65\u5165\uff0c\u5982\u679c\u5f53\u524d\u884c\u6709\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8fdb\u5165\u65b9\u6cd5\u5185\u90e8\uff0c\u4e00\u822c\u7528\u4e8e\u8fdb\u5165\u81ea\u5b9a\u4e49\u65b9\u6cd5\u5185\uff0c\u4e0d\u4f1a\u8fdb\u5165\u5b98\u65b9\u7c7b\u5e93\u7684\u65b9\u6cd5\uff0c\u5982\u7b2c25\u884c\u7684put\u65b9\u6cd5\u3002<\/li>\n<li><code>Force Step Into (Alt + Shift + F7)<\/code>\uff1a\u5f3a\u5236\u6b65\u5165\uff0c\u80fd\u8fdb\u5165\u4efb\u4f55\u65b9\u6cd5\uff0c\u67e5\u770b\u5e95\u5c42\u6e90\u7801\u7684\u65f6\u5019\u53ef\u4ee5\u7528\u8fd9\u4e2a\u8fdb\u5165\u5b98\u65b9\u7c7b\u5e93\u7684\u65b9\u6cd5\u3002<\/li>\n<li><code>Step Out (Shift + F8)<\/code>\uff1a\u6b65\u51fa\uff0c\u4ece\u6b65\u5165\u7684\u65b9\u6cd5\u5185\u9000\u51fa\u5230\u65b9\u6cd5\u8c03\u7528\u5904\uff0c\u6b64\u65f6\u65b9\u6cd5\u5df2\u6267\u884c\u5b8c\u6bd5\uff0c\u53ea\u662f\u8fd8\u6ca1\u6709\u5b8c\u6210\u8d4b\u503c\u3002<\/li>\n<li><code>Drop Frame (\u9ed8\u8ba4\u65e0)<\/code>\uff1a\u56de\u9000\u65ad\u70b9\uff0c\u540e\u9762\u7ae0\u8282\u8be6\u7ec6\u8bf4\u660e\u3002<\/li>\n<li><code>Run to Cursor (Alt + F9)<\/code>\uff1a\u8fd0\u884c\u5230\u5149\u6807\u5904\uff0c\u4f60\u53ef\u4ee5\u5c06\u5149\u6807\u5b9a\u4f4d\u5230\u4f60\u9700\u8981\u67e5\u770b\u7684\u90a3\u4e00\u884c\uff0c\u7136\u540e\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\uff0c\u4ee3\u7801\u4f1a\u8fd0\u884c\u81f3\u5149\u6807\u884c\uff0c\u800c\u4e0d\u9700\u8981\u6253\u65ad\u70b9\u3002<\/li>\n<li><code>Evaluate Expression (Alt + F8)<\/code>\uff1a\u8ba1\u7b97\u8868\u8fbe\u5f0f\uff0c\u540e\u9762\u7ae0\u8282\u8be6\u7ec6\u8bf4\u660e\u3002<\/li>\n<\/ul>\n<p><strong>2\u3001\u7b2c\u4e8c\u7ec4\u6309\u94ae\uff0c\u51717\u4e2a\u6309\u94ae\uff0c\u4ece\u4e0a\u5230\u4e0b\u4f9d\u6b21\u5982\u4e0b\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHV\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe2.2]<\/p>\n<ul>\n<li><code>Rerun 'xxxx'<\/code>\uff1a\u91cd\u65b0\u8fd0\u884c\u7a0b\u5e8f\uff0c\u4f1a\u5173\u95ed\u670d\u52a1\u540e\u91cd\u65b0\u542f\u52a8\u7a0b\u5e8f\u3002<\/li>\n<li><code>Update 'tech' application (Ctrl + F5)<\/code>\uff1a\u66f4\u65b0\u7a0b\u5e8f\uff0c\u4e00\u822c\u5728\u4f60\u7684\u4ee3\u7801\u6709\u6539\u52a8\u540e\u53ef\u6267\u884c\u8fd9\u4e2a\u529f\u80fd\u3002\u800c\u8fd9\u4e2a\u529f\u80fd\u5bf9\u5e94\u7684\u64cd\u4f5c\u5219\u662f\u5728\u670d\u52a1\u914d\u7f6e\u91cc\uff0c\u5982\u56fe2.3\u3002<\/li>\n<li><code>Resume Program (F9)<\/code>\uff1a\u6062\u590d\u7a0b\u5e8f\uff0c\u6bd4\u5982\uff0c\u4f60\u5728\u7b2c20\u884c\u548c25\u884c\u6709\u4e24\u4e2a\u65ad\u70b9\uff0c\u5f53\u524d\u8fd0\u884c\u81f3\u7b2c20\u884c\uff0c\u6309F9\uff0c\u5219\u8fd0\u884c\u5230\u4e0b\u4e00\u4e2a\u65ad\u70b9(\u5373\u7b2c25\u884c)\uff0c\u518d\u6309F9\uff0c\u5219\u8fd0\u884c\u5b8c\u6574\u4e2a\u6d41\u7a0b\uff0c\u56e0\u4e3a\u540e\u9762\u5df2\u7ecf\u6ca1\u6709\u65ad\u70b9\u4e86\u3002<\/li>\n<li><code>Pause Program<\/code>\uff1a\u6682\u505c\u7a0b\u5e8f\uff0c\u542f\u7528Debug\u3002\u76ee\u524d\u6ca1\u53d1\u73b0\u5177\u4f53\u7528\u6cd5\u3002<\/li>\n<li><code>Stop 'xxx' (Ctrl + F2)<\/code>\uff1a\u8fde\u7eed\u6309\u4e24\u4e0b\uff0c\u5173\u95ed\u7a0b\u5e8f\u3002\u6709\u65f6\u5019\u4f60\u4f1a\u53d1\u73b0\u5173\u95ed\u670d\u52a1\u518d\u542f\u52a8\u65f6\uff0c\u62a5\u7aef\u53e3\u88ab\u5360\u7528\uff0c\u8fd9\u662f\u56e0\u4e3a\u6ca1\u5b8c\u5168\u5173\u95ed\u670d\u52a1\u7684\u539f\u56e0\uff0c\u4f60\u5c31\u9700\u8981\u67e5\u6740\u6240\u6709JVM\u8fdb\u7a0b\u4e86\u3002<\/li>\n<li><code>View Breakpoints (Ctrl + Shift + F8)<\/code>\uff1a\u67e5\u770b\u6240\u6709\u65ad\u70b9\uff0c\u540e\u9762\u7ae0\u8282\u4f1a\u6d89\u53ca\u5230\u3002<\/li>\n<li><code>Mute Breakpoints<\/code>\uff1a\u54d1\u7684\u65ad\u70b9\uff0c\u9009\u62e9\u8fd9\u4e2a\u540e\uff0c\u6240\u6709\u65ad\u70b9\u53d8\u4e3a\u7070\u8272\uff0c\u65ad\u70b9\u5931\u6548\uff0c\u6309F9\u5219\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u5b8c\u7a0b\u5e8f\u3002\u518d\u6b21\u70b9\u51fb\uff0c\u65ad\u70b9\u53d8\u4e3a\u7ea2\u8272\uff0c\u6709\u6548\u3002\u5982\u679c\u53ea\u60f3\u4f7f\u67d0\u4e00\u4e2a\u65ad\u70b9\u5931\u6548\uff0c\u53ef\u4ee5\u5728\u65ad\u70b9\u4e0a\u53f3\u952e\u53d6\u6d88Enabled\uff0c\u5982\u56fe2.4\uff0c\u5219\u8be5\u884c\u65ad\u70b9\u5931\u6548\u3002<\/li>\n<\/ul>\n<p>\u66f4\u65b0\u7a0b\u5e8f\uff0cOn &#8216;Update&#8217; actions\uff0c\u6267\u884c\u66f4\u65b0\u64cd\u4f5c\u65f6\u6240\u505a\u7684\u4e8b\u60c5\uff0c\u4e00\u822c\u9009\u62e9&#8217;Update classes and resources&#8217;\uff0c\u5373\u66f4\u65b0\u7c7b\u548c\u8d44\u6e90\u6587\u4ef6\u3002<\/p>\n<p>\u4e00\u822c\u914d\u5408\u70ed\u90e8\u7f72\u63d2\u4ef6\u4f1a\u66f4\u597d\u7528\uff0c\u5982JRebel\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u6bcf\u6b21\u66f4\u6539\u4ee3\u7801\u540e\u8fd8\u8981\u53bb\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u3002\u5982\u4f55\u6fc0\u6d3bJRebel\uff0c\u5728\u6700\u540e\u7ae0\u8282\u9644\u4e0a\u3002<\/p>\n<p>\u4e0b\u9762\u7684On frame deactivation\uff0c\u5728IDEA\u7a97\u53e3\u5931\u53bb\u7126\u70b9\u65f6\u89e6\u53d1\uff0c\u5373\u4e00\u822c\u4f60\u4eceidea\u5207\u6362\u5230\u6d4f\u89c8\u5668\u7684\u65f6\u5019\uff0cidea\u4f1a\u81ea\u52a8\u5e2e\u4f60\u505a\u7684\u4e8b\u60c5\uff0c\u4e00\u822c\u53ef\u4ee5\u8bbe\u7f6eDo nothing\uff0c\u9891\u7e41\u5207\u6362\u4f1a\u6bd4\u8f83\u6d88\u8017\u8d44\u6e90\u7684\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHU\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe2.3]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHT\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe2.4]<\/p>\n<h3><strong>\u4e09\u3001\u53d8\u91cf\u67e5\u770b<\/strong><\/h3>\n<p>\u5728Debug\u8fc7\u7a0b\u4e2d\uff0c\u8ddf\u8e2a\u67e5\u770b\u53d8\u91cf\u7684\u53d8\u5316\u662f\u975e\u5e38\u5fc5\u8981\u7684\uff0c\u8fd9\u91cc\u5c31\u7b80\u5355\u8bf4\u4e0bIDEA\u4e2d\u53ef\u4ee5\u67e5\u770b\u53d8\u91cf\u7684\u51e0\u4e2a\u5730\u65b9\uff0c\u76f8\u4fe1\u5927\u90e8\u5206\u4eba\u90fd\u4e86\u89e3\u3002<\/p>\n<p><strong>1\u3001\u5982\u4e0b\uff0c\u5728IDEA\u4e2d\uff0c\u53c2\u6570\u6240\u5728\u884c\u540e\u9762\u4f1a\u663e\u793a\u5f53\u524d\u53d8\u91cf\u7684\u503c\u3002<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHS\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe3.1]<\/p>\n<p><strong>2\u3001\u5149\u6807\u60ac\u505c\u5230\u53c2\u6570\u4e0a\uff0c\u663e\u793a\u5f53\u524d\u53d8\u91cf\u4fe1\u606f\u3002<\/strong> \u70b9\u51fb\u6253\u5f00\u8be6\u60c5\u5982\u56fe3.3\u3002\u6211\u4e00\u822c\u4f1a\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\uff0c\u5feb\u6377\u65b9\u4fbf\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHR\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe3.2]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHQ\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe3.3]<\/p>\n<p><strong>3\u3001\u5728Variables\u91cc\u67e5\u770b\uff0c\u8fd9\u91cc\u663e\u793a\u5f53\u524d\u65b9\u6cd5\u91cc\u7684\u6240\u6709\u53d8\u91cf\u3002<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHP\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe3.4]<\/p>\n<p><strong>4\u3001\u5728Watches\u91cc\uff0c\u70b9\u51fbNew Watch\uff0c\u8f93\u5165\u9700\u8981\u67e5\u770b\u7684\u53d8\u91cf\u3002<\/strong> \u6216\u8005\u53ef\u4ee5\u4eceVariables\u91cc\u62d6\u5230Watche\u91cc\u67e5\u770b\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHO\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe3.5]<\/p>\n<p>\u5982\u679c\u4f60\u53d1\u73b0\u4f60\u6ca1\u6709Watches\uff0c\u53ef\u80fd\u5728\u4e0b\u56fe\u6240\u5728\u7684\u5730\u65b9\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHN\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe3.6]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHM\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe3.7]<\/p>\n<h3><strong>\u56db\u3001\u8ba1\u7b97\u8868\u8fbe\u5f0f<\/strong><\/h3>\n<p>\u5728\u524d\u9762\u63d0\u5230\u7684\u8ba1\u7b97\u8868\u8fbe\u5f0f\u5982\u56fe4.1\u7684\u6309\u94ae\uff0cEvaluate Expression (Alt + F8) \u3002\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u64cd\u4f5c\u5728\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\u8ba1\u7b97\u67d0\u4e2a\u8868\u8fbe\u5f0f\u7684\u503c\uff0c\u800c\u4e0d\u7528\u518d\u53bb\u6253\u5370\u4fe1\u606f\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHL\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe4.1]<\/p>\n<p><strong>1\u3001\u6309Alt + F8\u6216\u6309\u94ae\uff0c\u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u9009\u4e2d\u67d0\u4e2a\u8868\u8fbe\u5f0f\u518dAlt + F8\uff0c\u5f39\u51fa\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u7a97\u53e3<\/strong>\uff0c\u5982\u4e0b\uff0c\u56de\u8f66\u6216\u70b9\u51fbEvaluate\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u503c\u3002<\/p>\n<p>\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u662f\u4e00\u822c\u53d8\u91cf\u6216\u53c2\u6570\uff0c\u4e5f\u53ef\u4ee5\u662f\u65b9\u6cd5\uff0c\u5f53\u4f60\u7684\u4e00\u884c\u4ee3\u7801\u4e2d\u8c03\u7528\u4e86\u51e0\u4e2a\u65b9\u6cd5\u65f6\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u67e5\u770b\u67e5\u770b\u67d0\u4e2a\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHK\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe4.2]<\/p>\n<p><strong>2\u3001\u8bbe\u7f6e\u53d8\u91cf\uff0c\u5728\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u6846\u91cc\uff0c\u53ef\u4ee5\u6539\u53d8\u53d8\u91cf\u7684\u503c<\/strong>\uff0c\u8fd9\u6837\u6709\u65f6\u5019\u5c31\u80fd\u5f88\u65b9\u4fbf\u6211\u4eec\u53bb\u8c03\u8bd5\u5404\u79cd\u503c\u7684\u60c5\u51b5\u4e86\u4e0d\u662f\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHJ\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe4.3]<\/p>\n<h3><strong>\u4e94\u3001\u667a\u80fd\u6b65\u5165<\/strong><\/h3>\n<p>\u60f3\u60f3\uff0c\u4e00\u884c\u4ee3\u7801\u91cc\u6709\u597d\u51e0\u4e2a\u65b9\u6cd5\uff0c\u600e\u4e48\u53ea\u9009\u62e9\u67d0\u4e00\u4e2a\u65b9\u6cd5\u8fdb\u5165\u3002\u4e4b\u524d\u63d0\u5230\u8fc7\u4f7f\u7528Step Into (Alt + F7) \u6216\u8005 Force Step Into (Alt + Shift + F7)\u8fdb\u5165\u5230\u65b9\u6cd5\u5185\u90e8\uff0c\u4f46\u8fd9\u4e24\u4e2a\u64cd\u4f5c\u4f1a\u6839\u636e\u65b9\u6cd5\u8c03\u7528\u987a\u5e8f\u4f9d\u6b21\u8fdb\u5165\uff0c\u8fd9\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n<p>\u90a3\u4e48\u667a\u80fd\u6b65\u5165\u5c31\u5f88\u65b9\u4fbf\u4e86\uff0c\u667a\u80fd\u6b65\u5165\uff0c\u8fd9\u4e2a\u529f\u80fd\u5728Run\u91cc\u53ef\u4ee5\u770b\u5230\uff0cSmart Step Into (Shift + F7)\uff0c\u5982\u56fe5.1<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHI\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe5.1]<\/p>\n<p>\u6309Shift + F7\uff0c\u4f1a\u81ea\u52a8\u5b9a\u4f4d\u5230\u5f53\u524d\u65ad\u70b9\u884c\uff0c\u5e76\u5217\u51fa\u9700\u8981\u8fdb\u5165\u7684\u65b9\u6cd5\uff0c\u5982\u56fe5.2\uff0c\u70b9\u51fb\u65b9\u6cd5\u8fdb\u5165\u65b9\u6cd5\u5185\u90e8\u3002<\/p>\n<p>\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u65b9\u6cd5\uff0c\u5219\u76f4\u63a5\u8fdb\u5165\uff0c\u7c7b\u4f3cForce Step Into\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHH\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe5.2]<\/p>\n<h3><strong>\u516d\u3001\u65ad\u70b9\u6761\u4ef6\u8bbe\u7f6e<\/strong><\/h3>\n<p>\u901a\u8fc7\u8bbe\u7f6e\u65ad\u70b9\u6761\u4ef6\uff0c\u5728\u6ee1\u8db3\u6761\u4ef6\u65f6\uff0c\u624d\u505c\u5728\u65ad\u70b9\u5904\uff0c\u5426\u5219\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n<p>\u901a\u5e38\uff0c\u5f53\u6211\u4eec\u5728\u904d\u5386\u4e00\u4e2a\u6bd4\u8f83\u5927\u7684\u96c6\u5408\u6216\u6570\u7ec4\u65f6\uff0c\u5728\u5faa\u73af\u5185\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u65ad\u70b9\uff0c\u96be\u9053\u6211\u4eec\u8981\u4e00\u4e2a\u4e00\u4e2a\u53bb\u770b\u53d8\u91cf\u7684\u503c\uff1f\u90a3\u80af\u5b9a\u5f88\u7d2f\uff0c\u8bf4\u4e0d\u5b9a\u4f60\u8fd8\u9519\u8fc7\u8fd9\u4e2a\u503c\u5f97\u91cd\u65b0\u6765\u4e00\u6b21\u3002<\/p>\n<p><strong>1\u3001\u5728\u65ad\u70b9\u4e0a\u53f3\u952e\u76f4\u63a5\u8bbe\u7f6e\u5f53\u524d\u65ad\u70b9\u7684\u6761\u4ef6<\/strong>\uff0c\u5982\u56fe6.1\uff0c\u6211\u8bbe\u7f6eexist\u4e3atrue\u65f6\u65ad\u70b9\u624d\u751f\u6548\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHG\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe6.1]<\/p>\n<p><strong>2\u3001\u70b9\u51fbView Breakpoints (Ctrl + Shift + F8)\uff0c\u67e5\u770b\u6240\u6709\u65ad\u70b9\u3002<\/strong><\/p>\n<p>Java Line Breakpoints \u663e\u793a\u4e86\u6240\u6709\u7684\u65ad\u70b9\uff0c\u5728\u53f3\u8fb9\u52fe\u9009Condition\uff0c\u8bbe\u7f6e\u65ad\u70b9\u7684\u6761\u4ef6\u3002<\/p>\n<p>\u52fe\u9009Log message to console\uff0c\u5219\u4f1a\u5c06\u5f53\u524d\u65ad\u70b9\u884c\u8f93\u51fa\u5230\u63a7\u5236\u53f0\uff0c\u5982\u56fe6.3<\/p>\n<p>\u52fe\u9009Evaluate and log\uff0c\u53ef\u4ee5\u5728\u6267\u884c\u8fd9\u884c\u4ee3\u7801\u662f\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u503c\uff0c\u5e76\u5c06\u7ed3\u679c\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHF\" alt=\"\" title=\"\" loading=\"lazy\"> [\u56fe6.2]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHE\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.3]<\/p>\n<p><strong>3\u3001\u518d\u8bf4\u8bf4\u53f3\u8fb9\u7684Filters\u8fc7\u6ee4<\/strong>\uff0c\u8fd9\u4e9b\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u5e38\u7528\uff0c\u7b80\u5355\u8bf4\u4e0b\u610f\u601d\u3002<\/p>\n<p>Instance filters\uff1a\u5b9e\u4f8b\u8fc7\u6ee4\uff0c\u8f93\u5165\u5b9e\u4f8bID(\u5982\u56fe6.5\u4e2d\u7684\u5b9e\u4f8bID)\uff0c\u4f46\u662f\u6211\u8fd9\u91cc\u6ca1\u6709\u6210\u529f\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u539f\u56e0\uff0c\u77e5\u9053\u7684\u670b\u53cb\u7559\u4e2a\u8a00\u3002<\/p>\n<p>Class filters\uff1a\u7c7b\u8fc7\u6ee4\uff0c\u6839\u636e\u7c7b\u540d\u8fc7\u6ee4\uff0c\u540c\u6837\u6ca1\u6709\u6210\u529f&#8230;.<\/p>\n<p>Pass count\uff1a\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u5982\u679c\u65ad\u70b9\u5728\u5faa\u73af\u4e2d\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u8be5\u503c\uff0c\u5faa\u73af\u591a\u5c11\u6b21\u540e\u505c\u5728\u65ad\u70b9\u5904\uff0c\u4e4b\u540e\u7684\u5faa\u73af\u90fd\u4f1a\u505c\u5728\u65ad\u70b9\u5904\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHD\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.4]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHC\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.5]<\/p>\n<p><strong>4\u3001\u5f02\u5e38\u65ad\u70b9\uff0c\u901a\u8fc7\u8bbe\u7f6e\u5f02\u5e38\u65ad\u70b9<\/strong>\uff0c\u5728\u7a0b\u5e8f\u4e2d\u51fa\u73b0\u9700\u8981\u62e6\u622a\u7684\u5f02\u5e38\u65f6\uff0c\u4f1a\u81ea\u52a8\u5b9a\u4f4d\u5230\u5f02\u5e38\u884c\u3002<\/p>\n<p>\u5982\u56fe6.6\uff0c\u70b9\u51fb+\u53f7\u6dfb\u52a0Java Exception Breakpoints\uff0c\u6dfb\u52a0\u5f02\u5e38\u65ad\u70b9\u3002\u7136\u540e\u8f93\u5165\u9700\u8981\u65ad\u70b9\u7684\u5f02\u5e38\u7c7b\uff0c\u5982\u56fe6.7\uff0c\u4e4b\u540e\u53ef\u4ee5\u5728Java Exception Breakpoints\u91cc\u770b\u5230\u6dfb\u52a0\u7684\u5f02\u5e38\u65ad\u70b9\u3002<\/p>\n<p>\u6211\u8fd9\u91cc\u6dfb\u52a0\u4e86\u4e00\u4e2aNullPointerException\u5f02\u5e38\u65ad\u70b9\uff0c\u5982\u56fe6.8\uff0c\u51fa\u73b0\u7a7a\u6307\u9488\u5f02\u5e38\u540e\uff0c\u81ea\u52a8\u5b9a\u4f4d\u5728\u7a7a\u6307\u9488\u5f02\u5e38\u884c\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHB\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.6]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHw\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.7]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHA\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe6.8]<\/p>\n<h3><strong>\u4e03\u3001\u591a\u7ebf\u7a0b\u8c03\u8bd5<\/strong><\/h3>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\u6211\u4eec\u8c03\u8bd5\u7684\u65f6\u5019\u662f\u5728\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u7684\uff0c\u4e00\u6b65\u4e00\u6b65\u5f80\u4e0b\u8d70\u3002\u4f46\u6709\u65f6\u5019\u4f60\u4f1a\u53d1\u73b0\u5728Debug\u7684\u65f6\u5019\uff0c\u60f3\u53d1\u8d77\u53e6\u5916\u4e00\u4e2a\u8bf7\u6c42\u90fd\u65e0\u6cd5\u8fdb\u884c\u4e86\uff1f<\/p>\n<p>\u90a3\u662f\u56e0\u4e3aIDEA\u5728Debug\u65f6\u9ed8\u8ba4\u963b\u585e\u7ea7\u522b\u662fALL\uff0c\u4f1a\u963b\u585e\u5176\u5b83\u7ebf\u7a0b\uff0c\u53ea\u6709\u5728\u5f53\u524d\u8c03\u8bd5\u7ebf\u7a0b\u8d70\u5b8c\u65f6\u624d\u4f1a\u8d70\u5176\u5b83\u7ebf\u7a0b\u3002\u53ef\u4ee5\u5728View Breakpoints\u91cc\u9009\u62e9Thread\uff0c\u5982\u56fe7.1\uff0c\u7136\u540e\u70b9\u51fbMake Default\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u9009\u9879\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHz\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe7.1]<\/p>\n<p>\u5207\u6362\u7ebf\u7a0b\uff0c\u5728\u56fe7.2\u4e2dFrames\u7684\u4e0b\u62c9\u5217\u8868\u91cc\uff0c\u53ef\u4ee5\u5207\u6362\u5f53\u524d\u7684\u7ebf\u7a0b\uff0c\u5982\u4e0b\u6211\u8fd9\u91cc\u6709\u4e24\u4e2aDebug\u7684\u7ebf\u7a0b\uff0c\u5207\u6362\u53e6\u5916\u4e00\u4e2a\u5219\u8fdb\u5165\u53e6\u4e00\u4e2aDebug\u7684\u7ebf\u7a0b\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHx\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe7.2]<\/p>\n<h3><strong>\u516b\u3001\u56de\u9000\u65ad\u70b9<\/strong><\/h3>\n<p>\u5728\u8c03\u8bd5\u7684\u65f6\u5019\uff0c\u60f3\u8981\u91cd\u65b0\u8d70\u4e00\u4e0b\u6d41\u7a0b\u800c\u4e0d\u7528\u518d\u6b21\u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\uff1f<\/p>\n<p><strong>1\u3001\u9996\u5148\u8ba4\u8bc6\u4e0b\u8fd9\u4e2a\u65b9\u6cd5\u8c03\u7528\u6808<\/strong>\uff0c\u5982\u56fe8.1\uff0c\u9996\u5148\u8bf7\u6c42\u8fdb\u5165DemoController\u7684insertDemo\u65b9\u6cd5\uff0c\u7136\u540e\u8c03\u7528insert\u65b9\u6cd5\uff0c\u5176\u5b83\u7684invoke\u6211\u4eec\u4e14\u5148\u4e0d\u7ba1\uff0c\u6700\u4e0a\u9762\u7684\u65b9\u6cd5\u662f\u5f53\u524d\u65ad\u70b9\u6240\u5728\u7684\u65b9\u6cd5\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHy\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe8.1]<\/p>\n<p><strong>2\u3001\u65ad\u70b9\u56de\u9000<\/strong><\/p>\n<p>\u6240\u8c13\u7684\u65ad\u70b9\u56de\u9000\uff0c\u5176\u5b9e\u5c31\u662f\u56de\u9000\u5230\u4e0a\u4e00\u4e2a\u65b9\u6cd5\u8c03\u7528\u7684\u5f00\u59cb\u5904\uff0c\u5728IDEA\u91cc\u6d4b\u8bd5\u65e0\u6cd5\u4e00\u884c\u4e00\u884c\u5730\u56de\u9000\u6216\u56de\u5230\u5230\u4e0a\u4e00\u4e2a\u65ad\u70b9\u5904\uff0c\u800c\u662f\u56de\u5230\u4e0a\u4e00\u4e2a\u65b9\u6cd5\u3002<\/p>\n<p>\u56de\u9000\u7684\u65b9\u5f0f\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662fDrop Frame\u6309\u94ae(\u56fe8.2)\uff0c\u6309\u8c03\u7528\u7684\u65b9\u6cd5\u9010\u6b65\u56de\u9000\uff0c\u5305\u62ec\u4e09\u65b9\u7c7b\u5e93\u7684\u5176\u5b83\u65b9\u6cd5(\u53d6\u6d88Show All Frames\u6309\u94ae\u4f1a\u663e\u793a\u4e09\u65b9\u7c7b\u5e93\u7684\u65b9\u6cd5\uff0c\u5982\u56fe8.3)\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff0c\u5728\u8c03\u7528\u6808\u65b9\u6cd5\u4e0a\u9009\u62e9\u8981\u56de\u9000\u7684\u65b9\u6cd5\uff0c\u53f3\u952e\u9009\u62e9Drop Frame(\u56fe8.4)\uff0c\u56de\u9000\u5230\u8be5\u65b9\u6cd5\u7684\u4e0a\u4e00\u4e2a\u65b9\u6cd5\u8c03\u7528\u5904\uff0c\u6b64\u65f6\u518d\u6309F9(Resume Program)\uff0c\u53ef\u4ee5\u770b\u5230\u7a0b\u5e8f\u8fdb\u5165\u5230\u8be5\u65b9\u6cd5\u7684\u65ad\u70b9\u5904\u4e86\u3002<\/p>\n<blockquote><p>\u4f46\u6709\u4e00\u70b9\u9700\u8981\u6ce8\u610f\uff0c\u65ad\u70b9\u56de\u9000\u53ea\u80fd\u91cd\u65b0\u8d70\u4e00\u4e0b\u6d41\u7a0b\uff0c\u4e4b\u524d\u7684\u67d0\u4e9b\u53c2\u6570\/\u6570\u636e\u7684\u72b6\u6001\u5df2\u7ecf\u6539\u53d8\u4e86\u7684\u662f\u65e0\u6cd5\u56de\u9000\u5230\u4e4b\u524d\u7684\u72b6\u6001\u7684\uff0c\u5982\u5bf9\u8c61\u3001\u96c6\u5408\u3001\u66f4\u65b0\u4e86\u6570\u636e\u5e93\u6570\u636e\u7b49\u7b49\u3002<\/p><\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHu\" alt=\"\" title=\"\" loading=\"lazy\">\u56fe[8.2]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHt\" alt=\"\" title=\"\" loading=\"lazy\">\u56fe[8.3]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHs\" alt=\"\" title=\"\" loading=\"lazy\">\u56fe[8.4]<\/p>\n<h3><strong>\u4e5d\u3001\u4e2d\u65adDebug<\/strong><\/h3>\n<p>\u60f3\u8981\u5728Debug\u7684\u65f6\u5019\uff0c\u4e2d\u65ad\u8bf7\u6c42\uff0c\u4e0d\u8981\u518d\u8d70\u5269\u4f59\u7684\u6d41\u7a0b\u4e86\uff1f<\/p>\n<p>\u6709\u4e9b\u65f6\u5019\uff0c\u6211\u4eec\u770b\u5230\u4f20\u5165\u7684\u53c2\u6570\u6709\u8bef\u540e\uff0c\u4e0d\u60f3\u8d70\u540e\u9762\u7684\u6d41\u7a0b\u4e86\uff0c\u600e\u4e48\u4e2d\u65ad\u8fd9\u6b21\u8bf7\u6c42\u5462(\u540e\u9762\u7684\u6d41\u7a0b\u8981\u5220\u9664\u6570\u636e\u5e93\u6570\u636e\u5462&#8230;.)\uff0c\u96be\u9053\u8981\u5173\u95ed\u670d\u52a1\u91cd\u65b0\u542f\u52a8\u7a0b\u5e8f\uff1f\u55ef\uff0c\u6211\u4ee5\u524d\u4e5f\u662f\u8fd9\u4e48\u5e72\u7684\u3002<\/p>\n<p>\u786e\u5207\u7684\u8bf4\uff0c\u6211\u4e5f\u6ca1\u53d1\u73b0\u53ef\u4ee5\u76f4\u63a5\u4e2d\u65ad\u8bf7\u6c42\u7684\u65b9\u5f0f(\u9664\u4e86\u5173\u95ed\u670d\u52a1)\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7Force Return\uff0c\u5373\u5f3a\u5236\u8fd4\u56de\u6765\u907f\u514d\u540e\u7eed\u7684\u6d41\u7a0b\uff0c\u5982\u56fe9.1\u3002<\/p>\n<p>\u70b9\u51fbForce Return\uff0c\u5f39\u51faReturn Value\u7684\u7a97\u53e3\uff0c\u6211\u8fd9\u4e2a\u65b9\u6cd5\u7684\u8fd4\u56de\u7c7b\u578b\u4e3aMap\uff0c\u6240\u4ee5\uff0c\u6211\u8fd9\u91cc\u76f4\u63a5\u8fd4\u56de results\uff0c\u6765\u5f3a\u5236\u8fd4\u56de\uff0c\u4ece\u800c\u4e0d\u518d\u8fdb\u884c\u540e\u7eed\u7684\u6d41\u7a0b\u3002\u6216\u8005\u4f60\u53ef\u4ee5new HashMap&lt;&gt;()\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHr\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe9.1]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVbsBHv\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe9.2]<\/p>\n<h3><strong>\u5341\u3001\u9644\uff1aJRebel\u6fc0\u6d3b<\/strong><\/h3>\n<p>\u76ee\u524d\u672c\u4eba\u4e00\u76f4\u4f7f\u7528JRebel\u505a\u70ed\u90e8\u7f72\u5de5\u5177\uff0c\u6548\u679c\u8fd8\u7b97\u7406\u60f3\uff0c\u4fee\u6539Java\u4ee3\u7801\u6216\u8005xml\u7b49\u914d\u7f6e\u6587\u4ef6\u90fd\u80fd\u70ed\u66f4\u65b0\u3002\u5076\u5c14\u670d\u52a1\u5f00\u4e45\u4e86\uff0c\u6216\u66f4\u6539\u7684\u6587\u4ef6\u8f83\u591a\u65f6\uff0c\u70ed\u66f4\u65b0\u6ca1\u6709\u751f\u6548\uff0c\u9700\u8981\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u3002<\/p>\n<p>\u8fd9\u91cc\u53ea\u662f\u7b80\u5355\u8bf4\u4e0b\u6211\u5728\u7f51\u4e0a\u770b\u5230\u7684\u4e00\u79cd\u514d\u8d39\u83b7\u5f97\u6c38\u4e45\u4f7f\u7528\u6743\u7684\u65b9\u5f0f(\u975e\u7834\u89e3)\uff0c\u4e0d\u786e\u5b9a\u8fd9\u79cd\u65b9\u5f0f\u4ec0\u4e48\u65f6\u5019\u4e0d\u80fd\u7528\u3002<\/p>\n<ul>\n<li>\u9996\u5148\u4f60\u9700\u8981\u4e00\u4e2aTwitter\u7684\u8d26\u53f7<\/li>\n<li>\u8fdb\u5165\u8fd9\u4e2a\u7f51\u5740\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=l%2BGUKz7DYix78XQO7V%2FbrQ%3D%3D.TakJxqV1D4hUg1WLZT2OFbywnPtkvCShqx3xh2ufVm0%3D\" rel=\"nofollow\">https:\/\/my.jrebel.com\/<\/a>\uff0c\u5e76\u767b\u5f55\uff0c\u5982\u56fe10.1<\/li>\n<li>\u7136\u540e\u5728Install and Acticate\u91cc\u53ef\u4ee5\u5f97\u5230\u4f60\u7684\u6c38\u4e45\u6fc0\u6d3b\u7801\u3002<\/li>\n<li>\u5728\u8bbe\u7f6e\u91ccJrebel\u91cc\u8bbe\u7f6e\u6fc0\u6d3b\u7801\uff0c\u5982\u56fe10.3\uff0c\u5982\u679c\u6ca1\u6709\u5b89\u88c5JRebel\u63d2\u4ef6\uff0c\u5148\u5728Plugins\u91cc\u5b89\u88c5\u641c\u7d22\u5b89\u88c5JRebel\u63d2\u4ef6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2cug\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe10.1]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2cuh\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe10.2]<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2cui\" alt=\"\" title=\"\" loading=\"lazy\">[\u56fe10.3]<\/p>\n<p>\u6709\u4ec0\u4e48\u4e0d\u59a5\u4e4b\u5904\u6216\u8005\u66f4\u597d\u7684\u65b9\u5f0f\uff0c\u6b22\u8fce\u7559\u8a00\uff01<\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=etUAGVhwYl3b3nWVc1Spug%3D%3D.jKrDsWiqTTx0r1UF3vVmu1dmTvZwq1XOmLE6zPZtRGc%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=Y6uqYQhHFzyWia%2BiBIIZ3A%3D%3D.H6PFxSjD96AgjHCUo8b0x2xYa4meUOdl%2BhekCFH2Wxry%2B2SNYfcyKjLMLJiKOmQZLWW87mrDMIUc9JYPI6GNIg%3D%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=pDbDTtAIjiRi1JLC%2Be8znA%3D%3D.1dYRIO14a%2Ble4F3YUHvqImmuiSBYKhDPPX7Yy%2FgiidO4HLGYPKbeTs14jkcEgzXx\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=TKhNrseftIo4FvH%2B6lgKQg%3D%3D.WsRgb2Tj59xaQg2xT6%2BCth8ejzbVNj8RzQPn38uAyzxx20G86h6zVFh9M88Xf1nFID1nelTxzqa%2Basq9dEbw%2Fg%3D%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=WWyK2K%2FSrdscC3SLbp2Myw%3D%3D.gHFqNo8YDedffO78ch6saRRuKSUXgEGWc8esucbH9syljo3RMcS7HzbAG3xOszRdARmmRa6aAa1Sbiobnayyn89eL5zAptnoaFc%2BuhFc%2FZE%3D\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042431321\">https:\/\/segmentfault.com\/a\/1190000042431321<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u6e90\uff1ahttps:\/\/www.cnblogs.com\/chian&#8230; Debug\u7528\u6765\u8ffd\u8e2a\u4ee3\u7801\u7684\u8fd0\u884c\u6d41 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006399","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006399"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006399\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}