{"id":21269,"date":"2024-11-19T16:25:54","date_gmt":"2024-11-19T08:25:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21269\/"},"modified":"2024-11-19T16:25:54","modified_gmt":"2024-11-19T08:25:54","slug":"vscode%e4%bb%a3%e7%a0%81%e5%86%99%e5%a5%bd%e4%ba%86%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21269\/","title":{"rendered":"vscode\u4ee3\u7801\u5199\u597d\u4e86\u600e\u4e48\u8fd0\u884c"},"content":{"rendered":"<blockquote><p>\n  \u5728 vscode \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\uff1a\u6253\u5f00\u9879\u76ee\u6587\u4ef6\u5939\u5e76\u521b\u5efa\u8fd0\u884c\u914d\u7f6e\uff1b\u9009\u62e9\u4ee3\u7801\u8bed\u8a00\u548c\u8fd0\u884c\u65f6\uff1b\u914d\u7f6e\u542f\u52a8\u53c2\u6570\u548c\uff08\u53ef\u9009\uff09\u8c03\u8bd5\u9009\u9879\uff1b\u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd\uff1b\u8c03\u8bd5\u4ee3\u7801\u5e76\u8bbe\u7f6e\u65ad\u70b9\uff08\u53ef\u9009\uff09\uff1b\u505c\u6b62\u8c03\u8bd5\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/15\/2024051505361871774.jpg\" class=\"aligncenter\" title=\"vscode\u4ee3\u7801\u5199\u597d\u4e86\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" alt=\"vscode\u4ee3\u7801\u5199\u597d\u4e86\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" \/><\/p>\n<h2>\u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c\u4ee3\u7801<\/h2>\n<p>\u5728 VSCode \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u9879\u76ee\u6587\u4ef6\u5939<\/strong><\/p>\n<p>\u6253\u5f00 VSCode \u5e76\u6253\u5f00\u5305\u542b\u60a8\u4ee3\u7801\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u8fd0\u884c\u914d\u7f6e<\/strong><\/p>\n<p>\u5728 VSCode \u7684\u5de6\u4fa7\u8fb9\u680f\u4e2d\uff0c\u9009\u62e9 &#8220;\u8c03\u8bd5&#8221;\uff08Debug\uff09\u9762\u677f\u3002\u7136\u540e\u5355\u51fb &#8220;\u8fd0\u884c\u548c\u8c03\u8bd5&#8221;\uff08Run and Debug\uff09\u6309\u94ae\uff0c\u7136\u540e\u9009\u62e9 &#8220;\u521b\u5efa\u65b0\u914d\u7f6e&#8221;\uff08Create New Configuration\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u8bed\u8a00\u548c\u8fd0\u884c\u65f6<\/strong><\/p>\n<p>\u5728 &#8220;\u521b\u5efa\u542f\u52a8\u914d\u7f6e&#8221;\uff08Create Launch Configuration\uff09\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u60a8\u7684\u4ee3\u7801\u8bed\u8a00\u548c\u8fd0\u884c\u65f6\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e Python\uff0c\u60a8\u5c06\u9009\u62e9 &#8220;Python&#8221;\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u542f\u52a8\u53c2\u6570<\/strong><\/p>\n<p>\u5728 &#8220;\u53c2\u6570&#8221;\uff08Arguments\uff09\u9009\u9879\u5361\u4e0b\uff0c\u8f93\u5165\u60a8\u8981\u4f20\u9012\u7ed9\u4ee3\u7801\u7684\u4efb\u4f55\u53c2\u6570\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u8c03\u8bd5\u9009\u9879<\/strong><\/p>\n<p>\uff08\u53ef\u9009\uff09\u5728 &#8220;\u8c03\u8bd5\u9009\u9879&#8221;\uff08Debug Options\uff09\u9009\u9879\u5361\u4e0b\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u8c03\u8bd5\u5668\u9009\u9879\u548c\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd<\/strong><\/p>\n<p>\u5355\u51fb &#8220;\u8fd0\u884c&#8221;\uff08Run\uff09\u6309\u94ae\u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd\u3002VSCode \u5c06\u7f16\u8bd1\u548c\u8fd0\u884c\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u4ee3\u7801<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u9047\u5230\u4e86\u9519\u8bef\u6216\u5e0c\u671b\u8c03\u8bd5\u4ee3\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528 VSCode \u7684\u8c03\u8bd5\u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u68c0\u67e5\u53d8\u91cf\u5e76\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u505c\u6b62\u8c03\u8bd5<\/strong><\/p>\n<p>\u5f53\u60a8\u5b8c\u6210\u8c03\u8bd5\u65f6\uff0c\u5355\u51fb &#8220;\u505c\u6b62\u8c03\u8bd5&#8221;\uff08Stop Debugging\uff09\u6309\u94ae\u3002VSCode \u5c06\u505c\u6b62\u8fd0\u884c\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4ee3\u7801\u5199\u597d\u4e86\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 vscode \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\uff1a\u6253\u5f00\u9879\u76ee\u6587\u4ef6\u5939\u5e76\u521b\u5efa\u8fd0\u884c\u914d\u7f6e\uff1b\u9009\u62e9\u4ee3\u7801\u8bed\u8a00\u548c\u8fd0\u884c\u65f6\uff1b\u914d\u7f6e\u542f\u52a8\u53c2\u6570\u548c\uff08\u53ef\u9009\uff09\u8c03\u8bd5\u9009\u9879\uff1b\u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd\uff1b\u8c03\u8bd5\u4ee3\u7801\u5e76\u8bbe\u7f6e\u65ad\u70b9\uff08\u53ef\u9009\uff09\uff1b\u505c\u6b62\u8c03\u8bd5\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c\u4ee3\u7801 \u5728 VSCode \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a \u6253\u5f00\u9879\u76ee\u6587\u4ef6\u5939 \u6253\u5f00 VSCode \u5e76\u6253\u5f00\u5305\u542b\u60a8\u4ee3\u7801\u7684\u6587\u4ef6\u5939\u3002 \u521b\u5efa\u8fd0\u884c\u914d\u7f6e \u5728 VSCode \u7684\u5de6\u4fa7\u8fb9\u680f\u4e2d\uff0c\u9009\u62e9 &#8220;\u8c03\u8bd5&#8221;\uff08Debug\uff09\u9762\u677f\u3002\u7136\u540e\u5355\u51fb &#8220;\u8fd0\u884c\u548c\u8c03\u8bd5&#8221;\uff08Run and Debug\uff09\u6309\u94ae\uff0c\u7136\u540e\u9009\u62e9 &#8220;\u521b\u5efa\u65b0\u914d\u7f6e&#8221;\uff08Create New Configuration\uff09\u3002 \u9009\u62e9\u8bed\u8a00\u548c\u8fd0\u884c\u65f6 \u5728 &#8220;\u521b\u5efa\u542f\u52a8\u914d\u7f6e&#8221;\uff08Create Launch Configuration\uff09\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u60a8\u7684\u4ee3\u7801\u8bed\u8a00\u548c\u8fd0\u884c\u65f6\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e Python\uff0c\u60a8\u5c06\u9009\u62e9 &#8220;Python&#8221;\u3002 \u914d\u7f6e\u542f\u52a8\u53c2\u6570 \u5728 &#8220;\u53c2\u6570&#8221;\uff08Arguments\uff09\u9009\u9879\u5361\u4e0b\uff0c\u8f93\u5165\u60a8\u8981\u4f20\u9012\u7ed9\u4ee3\u7801\u7684\u4efb\u4f55\u53c2\u6570\u3002 \u914d\u7f6e\u8c03\u8bd5\u9009\u9879 \uff08\u53ef\u9009\uff09\u5728 &#8220;\u8c03\u8bd5\u9009\u9879&#8221;\uff08Debug Options\uff09\u9009\u9879\u5361\u4e0b\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u8c03\u8bd5\u5668\u9009\u9879\u548c\u73af\u5883\u53d8\u91cf\u3002 \u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd \u5355\u51fb &#8220;\u8fd0\u884c&#8221;\uff08Run\uff09\u6309\u94ae\u542f\u52a8\u8c03\u8bd5\u4f1a\u8bdd\u3002VSCode \u5c06\u7f16\u8bd1\u548c\u8fd0\u884c\u60a8\u7684\u4ee3\u7801\u3002 \u8c03\u8bd5\u4ee3\u7801 \u5982\u679c\u60a8\u9047\u5230\u4e86\u9519\u8bef\u6216\u5e0c\u671b\u8c03\u8bd5\u4ee3\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528 VSCode \u7684\u8c03\u8bd5\u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u68c0\u67e5\u53d8\u91cf\u5e76\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3002 \u505c\u6b62\u8c03\u8bd5 \u5f53\u60a8\u5b8c\u6210\u8c03\u8bd5\u65f6\uff0c\u5355\u51fb &#8220;\u505c\u6b62\u8c03\u8bd5&#8221;\uff08Stop Debugging\uff09\u6309\u94ae\u3002VSCode \u5c06\u505c\u6b62\u8fd0\u884c\u60a8\u7684\u4ee3\u7801\u3002 \u4ee5\u4e0a\u5c31\u662f\u4ee3\u7801\u5199\u597d\u4e86\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},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21269","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21269","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=21269"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21269\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}