{"id":21481,"date":"2024-11-19T14:47:50","date_gmt":"2024-11-19T06:47:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21481\/"},"modified":"2024-11-19T14:47:50","modified_gmt":"2024-11-19T06:47:50","slug":"webstorm%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21481\/","title":{"rendered":"webstorm\u600e\u4e48\u8fd0\u884c"},"content":{"rendered":"<blockquote><p>\n  \u5728 webstorm \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a\u521b\u5efa\u6216\u6253\u5f00\u9879\u76ee\u3002\u7f16\u5199 javascript \u4ee3\u7801\u3002\u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e\uff0c\u5305\u62ec\u4e3b\u6587\u4ef6\u3001node.js \u89e3\u91ca\u5668\u548c\u53c2\u6570\u3002\u5355\u51fb &#8220;run&#8221; \u6309\u94ae\u6216\u6309 &#8220;ctrl+d&#8221; \u5feb\u6377\u952e\u8fd0\u884c\u7a0b\u5e8f\u3002\u82e5\u8981\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u5728\u8fd0\u884c\u914d\u7f6e\u4e2d\u542f\u7528\u8c03\u8bd5\uff0c\u5e76\u6309 &#8220;debug&#8221; \u6309\u94ae\u6216 &#8220;ctrl+alt+d&#8221; \u5feb\u6377\u952e\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053022181758829.jpg\" class=\"aligncenter\" title=\"webstorm\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" alt=\"webstorm\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728 WebStorm \u4e2d\u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<p>WebStorm \u662f\u4e00\u6b3e\u6d41\u884c\u7684 JavaScript \u96c6\u6210\u5f00\u53d1\u73af\u5883 (IDE)\u3002\u8981\u5728\u6b64 IDE \u4e2d\u8fd0\u884c\u7a0b\u5e8f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u521b\u5efa\u6216\u6253\u5f00\u9879\u76ee<\/strong><\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u6216\u6253\u5f00\u4e00\u4e2a\u73b0\u6709\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p><strong>2. \u7f16\u5199\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u60a8\u7684 JavaScript \u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>3. \u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e<\/strong><\/p>\n<ul>\n<li>\u9009\u62e9 &#8220;Run&#8221; &gt; &#8220;Edit Configurations&#8230;&#8221;\u3002<\/li>\n<li>\u5728 &#8220;Run\/Debug Configurations&#8221; \u7a97\u53e3\u4e2d\uff0c\u5355\u51fb &#8220;+&#8221; \u6309\u94ae\u5e76\u9009\u62e9 &#8220;JavaScript Debug&#8221; \u914d\u7f6e\u7c7b\u578b\u3002<\/li>\n<li>\n<p>\u4e3a\u914d\u7f6e\u5206\u914d\u4e00\u4e2a\u540d\u79f0\uff0c\u5e76\u6307\u5b9a\u4ee5\u4e0b\u8bbe\u7f6e\uff1a<\/p>\n<ul>\n<li> <strong>Main file:<\/strong> \u8bbe\u7f6e\u4e3a\u60a8\u7684\u4e3b JavaScript \u6587\u4ef6\u3002<\/li>\n<li> <strong>Node.js interpreter:<\/strong> \u9009\u62e9\u8981\u7528\u4e8e\u8fd0\u884c\u7a0b\u5e8f\u7684 Node.js \u89e3\u91ca\u5668\u3002<\/li>\n<li> <strong>Arguments:<\/strong> \u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u5728\u6b64\u5904\u63d0\u4f9b\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>4. \u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u5355\u51fb &#8220;Run&#8221; \u5de5\u5177\u680f\u6309\u94ae\u6216\u6309 &#8220;Ctrl+D&#8221; (Windows\/Linux) \u6216 &#8220;Cmd+D&#8221; (Mac) \u5feb\u6377\u952e\u3002<\/li>\n<li>WebStorm \u5c06\u4f7f\u7528\u6307\u5b9a\u7684\u914d\u7f6e\u8fd0\u884c\u60a8\u7684\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p><strong>5. \u8c03\u8bd5\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u9700\u8981\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u914d\u7f6e\u4e2d\u542f\u7528\u8c03\u8bd5\u3002<\/li>\n<li>\u5728 &#8220;Debug&#8221; \u5de5\u5177\u680f\u6309\u94ae\u6216\u6309 &#8220;Ctrl+Alt+D&#8221; (Windows\/Linux) \u6216 &#8220;Cmd+Option+D&#8221; (Mac) \u5feb\u6377\u952e\u3002<\/li>\n<li>WebStorm \u5c06\u5728\u5e26\u6709\u65ad\u70b9\u548c\u8c03\u8bd5\u5668\u7684\u8c03\u8bd5\u5668\u6a21\u5f0f\u4e0b\u8fd0\u884c\u60a8\u7684\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 webstorm \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a\u521b\u5efa\u6216\u6253\u5f00\u9879\u76ee\u3002\u7f16\u5199 javascript \u4ee3\u7801\u3002\u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e\uff0c\u5305\u62ec\u4e3b\u6587\u4ef6\u3001node.js \u89e3\u91ca\u5668\u548c\u53c2\u6570\u3002\u5355\u51fb &#8220;run&#8221; \u6309\u94ae\u6216\u6309 &#8220;ctrl+d&#8221; \u5feb\u6377\u952e\u8fd0\u884c\u7a0b\u5e8f\u3002\u82e5\u8981\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u5728\u8fd0\u884c\u914d\u7f6e\u4e2d\u542f\u7528\u8c03\u8bd5\uff0c\u5e76\u6309 &#8220;debug&#8221; \u6309\u94ae\u6216 &#8220;ctrl+alt+d&#8221; \u5feb\u6377\u952e\u3002 \u5728 WebStorm \u4e2d\u8fd0\u884c\u7a0b\u5e8f WebStorm \u662f\u4e00\u6b3e\u6d41\u884c\u7684 JavaScript \u96c6\u6210\u5f00\u53d1\u73af\u5883 (IDE)\u3002\u8981\u5728\u6b64 IDE \u4e2d\u8fd0\u884c\u7a0b\u5e8f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u521b\u5efa\u6216\u6253\u5f00\u9879\u76ee \u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u6216\u6253\u5f00\u4e00\u4e2a\u73b0\u6709\u9879\u76ee\u3002 2. \u7f16\u5199\u4ee3\u7801 \u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u60a8\u7684 JavaScript \u4ee3\u7801\u3002 3. \u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e \u9009\u62e9 &#8220;Run&#8221; &gt; &#8220;Edit Configurations&#8230;&#8221;\u3002 \u5728 &#8220;Run\/Debug Configurations&#8221; \u7a97\u53e3\u4e2d\uff0c\u5355\u51fb &#8220;+&#8221; \u6309\u94ae\u5e76\u9009\u62e9 &#8220;JavaScript Debug&#8221; \u914d\u7f6e\u7c7b\u578b\u3002 \u4e3a\u914d\u7f6e\u5206\u914d\u4e00\u4e2a\u540d\u79f0\uff0c\u5e76\u6307\u5b9a\u4ee5\u4e0b\u8bbe\u7f6e\uff1a Main file: \u8bbe\u7f6e\u4e3a\u60a8\u7684\u4e3b JavaScript \u6587\u4ef6\u3002 Node.js [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21481","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21481"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21481\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}