{"id":10006461,"date":"2022-09-13T15:29:47","date_gmt":"2022-09-13T07:29:47","guid":{"rendered":"https:\/\/ityet.com\/?p=10006461"},"modified":"2022-09-13T15:29:47","modified_gmt":"2022-09-13T07:29:47","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-vs-code-%e8%b0%83%e8%af%95-vue-js-%e9%a1%b9%e7%9b%ae%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006461","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 VS Code \u8c03\u8bd5 Vue.js \u9879\u76ee\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460620\" alt=\"Yellow Duck\" title=\"Yellow Duck\" loading=\"lazy\"><\/p>\n<h2>\u7b80\u4ecb<\/h2>\n<p>\u6b64\u6559\u7a0b\u4f1a\u4ee5\u4e00\u4e2a\u5168\u65b0\u7684 Vue.js \u9879\u76ee\u4f5c\u4e3a\u6a21\u677f\u8fdb\u884c\u914d\u7f6e\uff0c\u4f60\u53ef\u4ee5\u8ddf\u968f\u6559\u7a0b\u4e00\u6b65\u6b65\u64cd\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u6309\u7167\u6559\u7a0b\u5c06\u914d\u7f6e\u6dfb\u52a0\u5230\u5df2\u6709\u7684\u9879\u76ee\u4e2d\u3002<\/p>\n<blockquote><p>\u4ed3\u5e93\u5730\u5740\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=NU5dYDNbS7ZLXYpYxXR1Bg%3D%3D.B86ztSt7e%2F4W22po3x4f1xoeLseG5OepL0OdKYt79PNCPD3PWyoiscWBhYeHpQEbETOC6Qg02mNRu%2B4%2FXxAsKw%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/mrlmx\/debug-vuejs-project-with-vscode<\/a><\/p><\/blockquote>\n<h2>\u521b\u5efa\u9879\u76ee<\/h2>\n<p>\u901a\u8fc7 vue \u63d0\u4f9b\u7684 <a href=\"https:\/\/link.segmentfault.com\/?enc=75AHolomYTJKuaqdbV4ekA%3D%3D.rVV8%2FCa3jtFbKIkwYs0NMKgnFvtFXSGbT8vlccSzQEFeoaw%2BRXI7aUEA6mfs%2Fs6v\" rel=\"nofollow\">create-vue<\/a> \u811a\u624b\u67b6\uff0c\u521b\u5efa\u4e00\u4e2a vue3 \u9879\u76ee\u3002<\/p>\n<pre><code class=\"shell\">npm init vue@latest<\/code><\/pre>\n<p>\u6ce8\u610f\uff1a\u901a\u8fc7\u4e0a\u8ff0\u547d\u4ee4\uff0c\u521b\u5efa\u7684\u662f\u57fa\u4e8e vite \u7684\u9879\u76ee\uff0c\u800c\u4e0d\u662f\u57fa\u4e8e webpack \u7684\u9879\u76ee\u3002<\/p>\n<p>\u7136\u540e\u5728 VS Code \u4e2d\u6253\u5f00\u521b\u5efa\u540e\u7684\u9879\u76ee\uff1a<\/p>\n<pre><code class=\"shell\">code .\/debug-vuejs-project-with-vscode<\/code><\/pre>\n<ul>\n<li><code>code<\/code> \u662f VS Code \u81ea\u5e26\u7684\u547d\u4ee4\uff0c\u5982\u679c\u4f60\u8fd0\u884c\u65f6\u63d0\u793a\u6ca1\u6709\u6b64\u547d\u4ee4\uff0c\u53ef\u4ee5\u770b<a href=\"https:\/\/link.segmentfault.com\/?enc=Q7KqA7saVJkWp5UxM%2FL5Mg%3D%3D.kYL%2BKEhM%2F646u0U892PWsf%2FI4T58BlbMQvNMN%2F7Eawu7XpLOc19UuePUMkwxbiVsetg%2FSJ6zHO6cNeHQcsc0v6AniFnSLswMx9ZhSAm4d38%3D\" rel=\"nofollow\">\u8fd9\u91cc<\/a>\u8bbe\u7f6e\u4e00\u4e0b\u3002<\/li>\n<li><code>debug-vuejs-project-with-vscode<\/code> \u662f\u6211\u7684\u9879\u76ee\u540d\u79f0\u3002<\/li>\n<\/ul>\n<h2>\u751f\u6210 sourcemap \u6587\u4ef6<\/h2>\n<h3>Vite<\/h3>\n<p>\u5982\u679c\u662f\u901a\u8fc7 <a href=\"https:\/\/link.segmentfault.com\/?enc=u1hNeCM7%2FcT6nxfPgYTyaw%3D%3D.rr5P3rHUu89nhgTN1GTPgZwqUtIzNZoonx%2BRz5ULn1s1AbrK%2FsAUAwyd8kfx9qAJ\" rel=\"nofollow\">create-vue<\/a> \u521b\u5efa\u7684\u9879\u76ee\uff0c\u5219\u4fee\u6539 <strong>vite.config.ts<\/strong> \u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u5f00\u53d1\u73af\u5883\u751f\u6210 sourcemap \u6587\u4ef6\u3002<\/p>\n<pre><code class=\"javascript\">export default defineConfig({\n  build: {\n    sourcemap: true,\n  },\n  \/\/ other configs...\n});<\/code><\/pre>\n<p>\u66f4\u591a\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=vnfpeInrF%2F0tz9ssuLTPoA%3D%3D.nY%2F%2F9XkM%2FVzmPTAIBkT6YpCkg2rImQ7K14YO6R%2FUVl4JcjSzFjdec0hCzouaANP%2BLx1yAsnqiqL%2FyGq7iEt5sQ%3D%3D\" rel=\"nofollow\">https:\/\/vitejs.dev\/config\/build-options.html#build-sourcemap<\/a><\/p>\n<h3>Vue Cli<\/h3>\n<p>\u5982\u679c\u662f\u901a\u8fc7 <a href=\"https:\/\/link.segmentfault.com\/?enc=jpR4EUP2lfWGR6z%2BRbbmGw%3D%3D.tOh8ZbuneG2fkHW7sYdo%2BQN1FU%2BZ4QHOC2J46l%2F6U6ZXQvyGMU%2B6k6Yaa5nBbiTv\" rel=\"nofollow\">vue-cli<\/a> \u521b\u5efa\u7684\u9879\u76ee\uff0c\u5219\u4fee\u6539 <strong>vue.config.js<\/strong> \u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u5f00\u53d1\u73af\u5883\u751f\u6210 sourcemap \u6587\u4ef6\u3002<\/p>\n<pre><code class=\"javascript\">module.exports = {\n  configureWebpack: {\n    devtool: &quot;source-map&quot;\n  }\n  \/\/ other configs...\n};<\/code><\/pre>\n<p>\u66f4\u591a\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=Gz8lhWhCPEapPAW0pLP0Yg%3D%3D.%2FCL5p1VmbRMboHfICBxGn6JyD%2B82h3rmyqIKD0QkjZHnjqA8mwBmsVr3DfnBjWpC\" rel=\"nofollow\">https:\/\/cli.vuejs.org\/guide\/webpack.html<\/a><\/p>\n<h3>Webpack<\/h3>\n<p>\u5982\u679c\u662f\u81ea\u5df1\u642d\u5efa\u7684\u9879\u76ee\uff0c\u5219\u4fee\u6539\u81ea\u5df1\u5b9a\u4e49\u7684 webpack \u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u5f00\u53d1\u73af\u5883\u751f\u6210 sourcemap \u6587\u4ef6\u3002<\/p>\n<pre><code class=\"javascript\">module.exports = {\n  devtool: &quot;source-map&quot;,\n  \/\/ other configs...\n};<\/code><\/pre>\n<p>\u66f4\u591a\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=mPTodBLG6AeR2fraSm6INQ%3D%3D.JV3NA6Y5Ot1OghEwu0F%2F109vClyIu39C5JgrCIMJgY%2FWmRJWd%2FF0OYtwA5F9KhGq7tlX2qVBqXvCkdnWZOpBeg%3D%3D\" rel=\"nofollow\">https:\/\/webpack.js.org\/configuration\/devtool\/#devtool<\/a><\/p>\n<h2>\u914d\u7f6e\u6587\u4ef6<\/h2>\n<h3>launch.json<\/h3>\n<p>\u901a\u8fc7\u5982\u4e0b\u6b65\u9aa4\uff0c\u521b\u5efa launch.json \u914d\u7f6e\u6587\u4ef6\uff08\u5982\u679c\u4f60\u7684\u9879\u76ee\u4e2d\u5df2\u7ecf\u5b58\u5728\u8be5\u6587\u4ef6\uff0c\u5219\u53ef\u8df3\u8fc7\u6b64\u6b65\u9aa4\uff09<\/p>\n<ol>\n<li>\u9009\u62e9\u5de6\u4fa7\u83dc\u5355\u4e2d\u7684 Debug icon\uff0c\u6253\u5f00\u8c03\u8bd5\u83dc\u5355\u3002<\/li>\n<li>\u70b9\u51fb create a launch.json file\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n<li>\u9009\u62e9 Web App\uff08Edge\uff09\uff0c\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u9009\u62e9 Web App\uff08Chrome\uff09<\/li>\n<\/ol>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460621\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u751f\u6210\u7684 launch.json \u6587\u4ef6\u5927\u81f4\u957f\u8fd9\u6837\uff08\u4e0d\u540c\u7248\u672c\u7684 VS Code \u53ef\u80fd\u7565\u6709\u4e0d\u540c\uff09\uff1a<\/p>\n<pre><code class=\"javascript\">{\n    \/\/ Use IntelliSense to learn about possible attributes.\n    \/\/ Hover to view descriptions of existing attributes.\n    \/\/ For more information, visit: https:\/\/go.microsoft.com\/fwlink\/?linkid=830387\n    &quot;version&quot;: &quot;0.2.0&quot;,\n    &quot;configurations&quot;: [\n        {\n            &quot;type&quot;: &quot;pwa-msedge&quot;,\n            &quot;request&quot;: &quot;launch&quot;,\n            &quot;name&quot;: &quot;Launch Edge against localhost&quot;,\n            &quot;url&quot;: &quot;http:\/\/localhost:8080&quot;,\n            &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;\n        }\n    ]\n}<\/code><\/pre>\n<p>\u5c06\u751f\u6210\u7684 launch.json \u6587\u4ef6\u5185\u5bb9\uff0c\u66ff\u6362\u4e3a\u4e0b\u65b9\u914d\u7f6e\uff1a<\/p>\n<pre><code class=\"javascript\">{\n  &quot;version&quot;: &quot;0.2.0&quot;,\n  &quot;configurations&quot;: [\n    {\n      \/\/ \u4f7f\u7528 Edge \u6d4f\u89c8\u5668\u8c03\u8bd5\n      &quot;type&quot;: &quot;msedge&quot;,\n      \/\/ \u4f7f\u7528 Chrome \u6d4f\u89c8\u5668\u8c03\u8bd5\n      \/\/ &quot;type&quot;: &quot;chrome&quot;,\n\n      &quot;request&quot;: &quot;launch&quot;,\n      &quot;name&quot;: &quot;vuejs: msedge&quot;,\n\n      \/\/ \u9879\u76ee\u7684\u8bbf\u95ee\u5730\u5740\uff08\u9700\u8981\u6539\u6210\u4f60\u9879\u76ee\u5f00\u53d1\u73af\u5883\u5bf9\u5e94\u7684\u5730\u5740\u548c\u7aef\u53e3\u53f7\uff09\n      &quot;url&quot;: &quot;http:\/\/localhost:5173&quot;,\n\n      &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;,\n      &quot;pathMapping&quot;: {\n        &quot;\/_karma_webpack_&quot;: &quot;${workspaceFolder}&quot;\n      },\n      &quot;sourceMapPathOverrides&quot;: {\n        &quot;webpack:\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/.\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/src\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/*&quot;: &quot;*&quot;,\n        &quot;\/.\/~\/*&quot;: &quot;${webRoot}\/node_modules\/*&quot;\n      },\n\n      \/\/ \u8bbe\u7f6e\u8fdb\u5165 debug \u73af\u5883\u4e4b\u524d\u9700\u8981\u6267\u884c\u7684\u4efb\u52a1\u3002\n      \/\/ \u6b64\u540d\u79f0\u5bf9\u5e94\u9879\u76ee\u4e2d .vscode \u76ee\u5f55\u4e0b tasks.json \u6587\u4ef6\u4e2d\u7684 label \u5c5e\u6027\uff09\n      &quot;preLaunchTask&quot;: &quot;vuejs: start&quot;\n    }\n  ]\n}<\/code><\/pre>\n<p>\u4e0a\u9762\u7684\u914d\u7f6e\u4e2d\uff0c\u6709\u4ee5\u4e0b\u51e0\u70b9\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<ul>\n<li>\n<p><code>type<\/code>\uff1aVS Code \u7684 Debug \u7c7b\u578b\u3002<\/p>\n<ul>\n<li><code>msedge<\/code> \u7684\u610f\u601d\u662f\u4f7f\u7528 Edge \u6d4f\u89c8\u5668\u8fdb\u884c\u8c03\u8bd5\u3002<\/li>\n<li><code>chrome<\/code> \u7684\u610f\u601d\u662f\u4f7f\u7528 Chrome \u6d4f\u89c8\u5668\u8fdb\u884c\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>url<\/code>\uff1a\u6d4f\u89c8\u5668\u542f\u52a8\u65f6\u8bbf\u95ee\u7684\u5730\u5740\u3002<\/p>\n<ul>\n<li>\u9700\u8981\u6539\u4e3a\u4f60\u9879\u76ee\u7684\u5f00\u53d1\u73af\u5883\u5730\u5740\uff0c\u5982\u679c\u4e00\u81f4\u5219\u65e0\u9700\u4fee\u6539\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>preLaunchTask<\/code>\uff1a\u8bbe\u7f6e\u8fdb\u5165 debug \u73af\u5883\u4e4b\u524d\u9700\u8981\u6267\u884c\u7684\u4efb\u52a1\u3002<\/p>\n<ul>\n<li>\u6b64\u540d\u79f0\u5bf9\u5e94\u9879\u76ee\u4e2d .vscode \u76ee\u5f55\u4e0b tasks.json \u6587\u4ef6\u4e2d\u7684 label \u5c5e\u6027\u3002<\/li>\n<li>tasks.json \u6587\u4ef6\u4e0b\u9762\u4f1a\u521b\u5efa\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u66f4\u591a\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\n<p>\u5173\u4e8e launch.json \u6587\u4ef6\u7684\u66f4\u591a\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=fg8I58ypVq%2FqY2c%2B2YBXUQ%3D%3D.ShG4FXxaF1y8ClTG9YZkqYXo443%2F0xn%2FBWL28i0ArTe4rD6M7JM3%2B0wHTiE0Thgkbmu%2BAkxMnDpPl2o2Wm6FEGsqiRH2HuEw2013XfHpECw%3D\" rel=\"nofollow\">https:\/\/code.visualstudio.com\/docs\/editor\/debugging#_launchjson-attributes<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>tasks.json<\/h3>\n<p>\u5728\u9879\u76ee\u7684 .vscode \u76ee\u5f55\u521b\u5efa tasks.json \u6587\u4ef6\uff0c\u7136\u540e\u5c06\u4e0b\u65b9\u5185\u5bb9\u7c98\u8d34\u8fdb\u53bb\uff1a<\/p>\n<pre><code class=\"javascript\">{\n  &quot;version&quot;: &quot;2.0.0&quot;,\n  &quot;tasks&quot;: [\n    {\n      &quot;label&quot;: &quot;vuejs: start&quot;,\n      &quot;type&quot;: &quot;npm&quot;,\n      \/\/ \u9700\u8981\u6267\u884c\u7684\u547d\u4ee4\uff08\u5bf9\u5e94\u4e8e package.json \u4e2d\u7684 scripts \u547d\u4ee4\uff09\n      &quot;script&quot;: &quot;dev&quot;,\n      &quot;isBackground&quot;: true\n    }\n  ]\n}<\/code><\/pre>\n<p>\u4e0a\u9762\u7684\u914d\u7f6e\u5728\u6267\u884c\u65f6\uff0c\u8fd0\u884c\u7684\u547d\u4ee4\u662f\uff1a<code>npm run dev<\/code>\uff0c\u5982\u679c\u4f60\u7684\u9879\u76ee\u662f\u5176\u4ed6\u7684\u542f\u52a8\u547d\u4ee4\uff0c\u90a3\u4e48\u4fee\u6539\u4e3a\u5bf9\u5e94\u7684 script \u540d\u79f0\u5373\u53ef\u3002<\/p>\n<p>\u6ce8\u610f\uff1a<code>type<\/code> \u7684\u5176\u4ed6\u53ef\u9009\u503c\u662f <code>shell<\/code> \u6216\u8005 <code>process<\/code>\uff0c\u53ef\u4e0d\u8981\u50bb\u4e4e\u4e4e\u7684\u6539\u6210 <code>yarn<\/code>\u3002<\/p>\n<blockquote>\n<p><code>type<\/code>\uff1a\u4efb\u52a1\u7684\u7c7b\u578b\u3002\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u4efb\u52a1\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e3a <code>shell<\/code> \u6216 <code>process<\/code>\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a <code>shell<\/code>\uff0c\u5219\u8be5\u547d\u4ee4\u5c06\u88ab\u89e3\u91ca\u4e3a shell \u547d\u4ee4\uff08\u4f8b\u5982\uff1abash\u3001cmd \u6216 PowerShell\uff09\u3002<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a <code>process<\/code>\uff0c\u5219\u8be5\u547d\u4ee4\u5c06\u88ab\u89e3\u91ca\u4e3a\u8981\u6267\u884c\u7684\u8fdb\u7a0b\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u66f4\u591a\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\n<p>\u5173\u4e8e tasks.json \u6587\u4ef6\u7684\u66f4\u591a\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=SQVdJVxLxCxJ2yFMfDWIRA%3D%3D.dGmCijy%2BqfIa9l5tlxLfvbOYqinrETkuIqg8vH3TZ9xDt5u7nzIU%2BFgsck2BMhkXYEqXa0K%2Fa1btTP1vxUFhlA%3D%3D\" rel=\"nofollow\">https:\/\/code.visualstudio.com\/docs\/editor\/tasks#_custom-tasks<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=aPcUnCq439VzTnShdEr7NQ%3D%3D.Kn9PuLlGPUv4rsE7cp7fp6AV%2F0rl6fz5kQLN8%2Fheoyl9e0fgIqehZNZhdJhv1gVqAdS5J3ADQV%2B3LZpOm2RKWg%3D%3D\" rel=\"nofollow\">https:\/\/code.visualstudio.com\/docs\/editor\/tasks-appendix<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5173\u4e8e VS Code tasks \u529f\u80fd\uff0c\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=di3yk%2B8D6PJlJgxzPXb4ww%3D%3D.q%2BGBgfBDWMrcIUViI9pv96q7zrtmkSjXYEO0ByUc5NtFvnRUfTtOJUXCzoRlm5yy\" rel=\"nofollow\">https:\/\/code.visualstudio.com\/docs\/editor\/tasks<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u6253\u65ad\u70b9<\/h2>\n<p>\u54b1\u4eec\u5c06 <strong>src\/views\/AboutView.vue<\/strong> \u6587\u4ef6\u7684\u5185\u5bb9\u7a0d\u5fae\u6539\u4e00\u4e0b\uff0c\u7136\u540e\u6253\u4e24\u4e2a\u65ad\u70b9\u3002<\/p>\n<pre><code class=\"jsx\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { reactive, ref } from &quot;vue&quot;;\n\nconst other = reactive([\n  { name: &quot;lmx&quot;, age: 18 },\n  { name: &quot;foo&quot;, age: 20 },\n  { name: &quot;bar&quot;, age: 12 },\n]);\nconst count = ref(0);\n\nconst handlePlus = () =&gt; {\n  console.log(&quot;plus before&quot;, count.value);\n  count.value++;\n  console.log(&quot;plus after&quot;, count.value);\n};\n\nconst handleMinus = () =&gt; {\n  console.log(&quot;minus before&quot;, count.value);\n  count.value--;\n  console.log(&quot;minus after&quot;, count.value);\n};\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;div class=&quot;about&quot;&gt;\n    &lt;h1&gt;This is an about page&lt;\/h1&gt;\n    &lt;div&gt;\n      &lt;p&gt;{{ count }}&lt;\/p&gt;\n      &lt;button @click=&quot;handlePlus&quot;&gt;plus&lt;\/button&gt;\n      &lt;button @click=&quot;handleMinus&quot;&gt;minus&lt;\/button&gt;\n      &lt;hr style=&quot;margin: 20px 0&quot; \/&gt;\n      &lt;p v-for=&quot;item of other&quot; :key=&quot;item.name&quot;&gt;\n        {{ item.name }}: {{ item.age }}\n      &lt;\/p&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u5728\u7b2c <strong>13<\/strong> \u884c\u548c \u7b2c <strong>19<\/strong> \u884c\uff0c\u5206\u522b\u6253\u4e86 2 \u4e2a\u65ad\u70b9\uff08\u5728\u5bf9\u5e94\u884c\u53f7\u5de6\u8fb9\uff0c\u70b9\u51fb\u9f20\u6807\u5de6\u952e\u5373\u53ef\u6253\u65ad\u70b9\uff09\uff1a<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460622\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a\u4e00\u5b9a\u8981\u5728\u542f\u52a8 Debug \u524d\u6253\u597d\u65ad\u70b9\uff0c\u5426\u5219\u4f60\u5c06\u65e0\u6cd5\u5339\u914d\u5230\u65ad\u70b9\u3002<\/p>\n<p>\u542f\u52a8\u4e4b\u540e\uff0c\u5728\u6e90\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u7684\u65ad\u70b9\u662f\u65e0\u6548\u7684\uff0c\u8fd0\u884c\u4e2d\u7684\u7f16\u8bd1\u6587\u4ef6\u65e0\u6cd5\u5339\u914d\u5230\u65b0\u7684\u65ad\u70b9\uff0c\u9664\u975e\u4fee\u6539\u6e90\u6587\u4ef6\u7684\u4ee3\u7801\u89e6\u53d1\u7f16\u8bd1\uff0c\u8fd9\u6837\u65b0\u751f\u6210\u7684\u7f16\u8bd1\u6587\u4ef6\u624d\u4f1a\u6620\u5c04\u5230\u65b0\u65ad\u70b9\u3002<\/p>\n<p>\u6211\u731c\u6d4b\u7684\u539f\u56e0\u662f\uff1a\u56e0\u4e3a <code>*.vue<\/code> \u8fd9\u79cd SFC \u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u9700\u8981\u5c06<code>script<\/code>\uff0c<code>template<\/code>\uff0c<code>style<\/code>\u8fd9 3 \u4e2a\u6a21\u5757\u62c6\u5206\u7f16\u8bd1\uff0c\u5b9e\u9645\u8fd0\u884c\u7684\u662f\u7f16\u8bd1\u540e\u7684 js \u6587\u4ef6\uff0c\u800c\u4e14\u6bcf\u6b21\u6587\u4ef6\u4fee\u6539\u6216\u8005\u91cd\u542f\u9879\u76ee\u4e4b\u540e\uff0c\u90fd\u4f1a\u7f16\u8bd1\u51fa\u65b0\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u63d0\u524d\u6253\u65ad\u70b9\uff0c\u90a3\u4e48\u6e90\u6587\u4ef6\u548c\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u5c06\u4e0d\u4f1a\u5173\u8054\u4e0a\u3002<\/p>\n<h3>\u5f39\u7a97\u63d0\u793a<\/h3>\n<p>\u53e6\u5916\uff0c\u6211\u53d1\u73b0\uff1a\u4e0d\u7ba1\u662f\u5426\u63d0\u524d\u6253\u4e86\u65ad\u70b9\uff0c\u5728\u542f\u52a8\u65f6\u90fd\u4f1a\u63d0\u793a\uff1a<\/p>\n<blockquote><p>The task &#8216;xxx&#8217; cannot be tracked. Make sure to have a problem matcher defined\u3002<\/p><\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460623\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><br \/>\u6211\u641c\u4e86\u4e00\u4e0b\uff0c\u6682\u65f6\u6ca1\u6709\u627e\u5230\u7279\u522b\u5b8c\u7f8e\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u8fd9\u91cc\u63d0\u4f9b\u4e24\u79cd\u8e69\u811a\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>\u65b9\u6848\u4e00\uff1a<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u4e0d\u5728\u610f\u8fd9\u4e2a\u63d0\u793a\u7684\u8bdd\uff0c\u53ef\u4ee5\u6bcf\u6b21\u90fd\u70b9\u51fb\u4e00\u4e0b\u300cDebug Anyway\u300d\u6309\u94ae\uff0c\u6216\u8005\u52fe\u9009\u4e00\u4e0b\u300cRemember my choice for this task\u300d\uff0c\u4ee5\u540e\u6bcf\u6b21\u8fd0\u884c\u7684\u65f6\u5019\u5c31\u4e0d\u4f1a\u63d0\u793a\u4e86\uff0c\u6240\u8c13\u773c\u4e0d\u89c1\u5fc3\u4e0d\u70e6\u3002<\/p>\n<p><strong>\u65b9\u6848\u4e8c\uff1a<\/strong><\/p>\n<p>\u628a launch.json \u6587\u4ef6\u4e2d\u7684 <code>preLaunchTask<\/code> \u5c5e\u6027\u53bb\u6389\uff0cDebug \u4e4b\u524d\u81ea\u5df1\u624b\u52a8\u542f\u52a8\u9879\u76ee\uff0c\u53cd\u6b63\u914d\u7f6e <code>preLaunchTask<\/code> \u7684\u76ee\u7684\u5c31\u662f\u81ea\u52a8\u5e2e\u4f60\u628a\u9879\u76ee\u542f\u52a8\u8d77\u6765\uff0c\u6240\u8c13\u81ea\u5df1\u52a8\u624b\u4e30\u8863\u8db3\u98df\u3002<\/p>\n<h2>\u542f\u52a8 Debug<\/h2>\n<p>\u7ecf\u8fc7\u4e0a\u8ff0\u914d\u7f6e\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7 Debug \u6a21\u5f0f\u542f\u52a8\u9879\u76ee\u4e86\uff0c\u54b1\u4eec\u6765\u5206\u522b\u4ecb\u7ecd\u4e00\u4e0b\u300c\u5feb\u6377\u952e\u300d\u548c\u300c\u624b\u52a8\u542f\u52a8\u300d\u8fd9 2 \u79cd\u542f\u52a8\u65b9\u5f0f\u3002<\/p>\n<h3>\u5feb\u6377\u952e\uff1aF5<\/h3>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u53ea\u6709 1 \u4e2a Debug \u914d\u7f6e\u7684\u8bdd\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 <code>F5<\/code> \u5feb\u6377\u952e\u542f\u52a8 Debug \u6a21\u5f0f\uff0c\u975e\u5e38\u7684\u7b80\u5355\u65b9\u4fbf\uff0c\u63a8\u8350\u65e5\u5e38\u4f7f\u7528\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460624\" alt=\"image222.jpg\" title=\"image222.jpg\" loading=\"lazy\"><\/p>\n<h3>\u624b\u52a8\u542f\u52a8<\/h3>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u6709\u591a\u4e2a Debug \u914d\u7f6e\uff0claunch.json \u6587\u4ef6\u7684 <code>configurations<\/code> \u6570\u7ec4\u6709\u591a\u4e2a\u914d\u7f6e\u5bf9\u8c61\u3002<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019 <code>F5<\/code> \u5feb\u6377\u952e\u542f\u52a8\u7684\u5c31\u662f\u7b2c\u4e00\u4e2a\u914d\u7f6e\uff0c\u5982\u679c\u4f60\u60f3\u8981\u542f\u52a8\u5176\u4ed6 Debug \u914d\u7f6e\uff0c\u5c31\u9700\u8981\u901a\u8fc7\u624b\u52a8\u9009\u62e9\u4e86\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u70b9\u51fb\u300c\u4e0b\u62c9\u83dc\u5355\u300d\u4e4b\u540e\uff0c\u5c55\u793a\u4e86 2 \u4e2a\u914d\u7f6e\u9009\u9879\uff1a<code>vuejs: msedge<\/code> \u548c <code>vuejs: chrome<\/code><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460625\" alt=\"\u622a\u5c4f2022-08-30 00.43.56(2).png\" title=\"\u622a\u5c4f2022-08-30 00.43.56(2).png\" loading=\"lazy\"><\/p>\n<p>\u793a\u4f8b\u4e2d launch.json \u914d\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<pre><code class=\"json\">{\n  &quot;version&quot;: &quot;0.2.0&quot;,\n  &quot;configurations&quot;: [\n    {\n      &quot;type&quot;: &quot;msedge&quot;,\n      &quot;request&quot;: &quot;launch&quot;,\n      &quot;name&quot;: &quot;vuejs: msedge&quot;,\n      &quot;url&quot;: &quot;http:\/\/localhost:5173&quot;,\n      &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;,\n      &quot;pathMapping&quot;: {\n        &quot;\/_karma_webpack_&quot;: &quot;${workspaceFolder}&quot;\n      },\n      &quot;sourceMapPathOverrides&quot;: {\n        &quot;webpack:\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/.\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/src\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/*&quot;: &quot;*&quot;,\n        &quot;\/.\/~\/*&quot;: &quot;${webRoot}\/node_modules\/*&quot;\n      },\n      &quot;preLaunchTask&quot;: &quot;vuejs: start&quot;\n    },\n    {\n      &quot;type&quot;: &quot;chrome&quot;,\n      &quot;request&quot;: &quot;launch&quot;,\n      &quot;name&quot;: &quot;vuejs: chrome&quot;,\n      &quot;url&quot;: &quot;http:\/\/localhost:5173&quot;,\n      &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;,\n      &quot;pathMapping&quot;: {\n        &quot;\/_karma_webpack_&quot;: &quot;${workspaceFolder}&quot;\n      },\n      &quot;sourceMapPathOverrides&quot;: {\n        &quot;webpack:\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/.\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/src\/*&quot;: &quot;${webRoot}\/*&quot;,\n        &quot;\/*&quot;: &quot;*&quot;,\n        &quot;\/.\/~\/*&quot;: &quot;${webRoot}\/node_modules\/*&quot;\n      },\n      &quot;preLaunchTask&quot;: &quot;vuejs: start&quot;\n    }\n  ]\n}<\/code><\/pre>\n<p>\u770b\u5230\u8fd9\u91cc\uff0c\u4f60\u5e94\u8be5\u5df2\u7ecf\u628a debug \u7684\u73af\u5883\u914d\u7f6e\u597d\u4e86\uff0c\u73b0\u5728\u53ef\u4ee5\u5f00\u59cb\u6109\u5feb\u7684\u8c03\u8bd5\u4e86\u3002<\/p>\n<h2>\u4e00\u4e9b\u95ee\u9898<\/h2>\n<p>\u5728\u6211\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e5f\u53d1\u73b0\u4e86\u51e0\u4e2a\u8ba9\u6211\u5934\u75db\u7684\u95ee\u9898\uff0c\u8fd9\u91cc\u987a\u5e26\u63d0\u4e00\u4e0b\u3002<\/p>\n<p>\u5728\u5f00\u59cb\u8bf4\u8fd9\u4e9b\u95ee\u9898\u4e4b\u524d\uff0c\u54b1\u4eec\u5148\u770b\u4e00\u4e0b\u8fd9\u5f20\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460626\" alt=\"iShot2022-09-12 11.51.16.png\" title=\"iShot2022-09-12 11.51.16.png\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u6807\u6ce8 1\uff1a\u662f\u54b1\u4eec\u7684\u4ee3\u7801\u6e90\u6587\u4ef6\u3002<\/li>\n<li>\n<p>\u6807\u6ce8 2\uff1a\u662f\u8fd0\u884c\u65f6\u547d\u4e2d\u65ad\u70b9\u540e\uff0cVS Code \u81ea\u52a8\u6253\u5f00\u7684\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u3002<\/p>\n<ul>\n<li>\u4ed6\u7684\u540d\u5b57\u4e5f\u6709\u53ef\u80fd\u662f\uff1a<code>AboutView.vue?t=1661699383436<\/code>\u3002<\/li>\n<li>\u6709\u4e00\u4e2a<code>t<\/code>\u53c2\u6570\uff0c\u662f\u4e00\u4e2a\u6beb\u79d2\u65f6\u95f4\u6233\uff0c\u5e94\u8be5\u662f\u907f\u514d\u7f13\u5b58\u7684\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6807\u6ce8 3\uff1a\u662f\u7b2c\u4e00\u4e2a\u65ad\u70b9\uff0c\u884c\u53f7\u662f 13\u3002<\/li>\n<li>\u6807\u6ce8 4\uff1a\u662f\u7b2c\u4e8c\u4e2a\u65ad\u70b9\uff0c\u884c\u53f7\u662f 19\u3002<\/li>\n<\/ul>\n<h3>1. \u5fc5\u987b\u5148\u6253\u65ad\u70b9<\/h3>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u5176\u5b9e\u65ad\u70b9\u547d\u4e2d\u662f\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u524d\u9762\u6211\u4eec\u63d0\u5230\uff0c\u5728\u8fd0\u884c Debug \u6a21\u5f0f\u4e4b\u540e\u518d\u53bb\u6e90\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u65ad\u70b9\uff0c\u6b63\u5e38\u60c5\u51b5\u4e0b\u662f\u65e0\u6cd5\u5339\u914d\u7684\u3002<\/p>\n<p>\u90a3\u5982\u679c\u6211\u5728\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u60f3\u8981\u6dfb\u52a0\u65b0\u65ad\u70b9\u8be5\u600e\u4e48\u529e\u5462\uff1f<\/p>\n<p><strong>\u65b9\u6cd5 1\uff1a<\/strong> \u76f4\u63a5\u5728\u300c\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u300d\u4e2d\u6253\u65b0\u65ad\u70b9\u3002<\/p>\n<p>\u6b64\u65b9\u6cd5\u7684\u5f0a\u7aef\u662f\uff1a\u4ed6\u662f\u4e2a\u4e00\u6b21\u6027\u7684\u65ad\u70b9\u3002<\/p>\n<p>\u56e0\u4e3a\u65b0\u65ad\u70b9\u662f\u9488\u5bf9\u8fd9\u4e2a\u7f16\u8bd1\u6587\u4ef6\u7684\uff0c\u5982\u679c\u6e90\u6587\u4ef6\u6539\u52a8\u540e\uff0c\u4f1a\u91cd\u65b0\u7f16\u8bd1\u51fa\u65b0\u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u8fd9\u4e2a\u65ad\u70b9\u5c06\u4f1a\u5931\u6548\uff0c\u540e\u7eed\u5c06\u4e0d\u4f1a\u88ab\u5339\u914d\u5230\u3002<\/p>\n<p><strong>\u65b9\u6cd5 2\uff1a<\/strong> \u76f4\u63a5\u5728\u300c\u6e90\u6587\u4ef6\u300d\u4e2d\u6253\u65b0\u65ad\u70b9\u3002<\/p>\n<p>\u6b64\u65b9\u6cd5\u7684\u5f0a\u7aef\u662f\uff1a\u9700\u8981\u624b\u52a8\u89e6\u53d1\u7f16\u8bd1\u3002<\/p>\n<p>\u524d\u9762\u4e5f\u63d0\u5230\u8fc7\uff0c\u5728\u6e90\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u65ad\u70b9\u4e4b\u540e\uff0c\u8fd0\u884c\u4e2d\u7684\u7f16\u8bd1\u6587\u4ef6\u662f\u65e0\u6cd5\u611f\u77e5\u5230\u7684\uff0c\u6240\u4ee5\u5fc5\u987b\u8ba9\u6e90\u6587\u4ef6\u89e6\u53d1\u91cd\u65b0\u7f16\u8bd1\uff0c\u751f\u6210\u65b0\u7684\u7f16\u8bd1\u6587\u4ef6\uff0c\u8fd9\u6837\u6e90\u6587\u4ef6\u7684\u6240\u6709\u65ad\u70b9\u5c31\u4f1a\u540c\u6b65\u6620\u5c04\u5230\u65b0\u7684\u7f16\u8bd1\u6587\u4ef6\u4e2d\u4e86\u3002<\/p>\n<p>\u6211\u6bcf\u6b21\u89e6\u53d1\u91cd\u65b0\u7f16\u8bd1\u7684\u65b9\u5f0f\u662f\uff0c\u968f\u4fbf\u5728\u67d0\u4e2a\u5730\u65b9\u6dfb\u52a0\u4e00\u884c <code>console.log(&quot;&quot;)<\/code>\uff0c\u7136\u540e\u6bcf\u6b21\u76f4\u63a5\u4fee\u6539\u6253\u5370\u7684\u5185\u5bb9\u5373\u53ef\u3002<\/p>\n<h3>2. \u65ad\u70b9\u4f4d\u7f6e\u4e0d\u4e00\u81f4<\/h3>\n<p>\u6e90\u6587\u4ef6\u548c\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u65ad\u70b9\u7684\u884c\u53f7\u4e00\u81f4\uff0c\u4f46\u662f\u5bf9\u5e94\u7684\u884c\u53f7\u5374\u662f\u4e0d\u540c\u7684\u4ee3\u7801\uff0c\u548c\u6211\u4eec\u9884\u671f\u7684\u65ad\u70b9\u4f4d\u7f6e\u4e0d\u4e00\u81f4\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460627\" alt=\"IMG_6354.JPEG\" title=\"IMG_6354.JPEG\" loading=\"lazy\"><\/p>\n<p>\u5bf9\u6bd4\u4e4b\u540e\u53ef\u4ee5\u770b\u51fa\uff0c<a href=\"https:\/\/link.segmentfault.com\/?enc=fZssjo0YGm7L0eyGZLYf2w%3D%3D.0PvY5WzPGuQByUxrJLwbALskUQIPJiIW5lqWRghKZWfGN%2BmWLitylI%2BoYTVhAV6PQavwVud5EVraRu9uK0SUXg%3D%3D\" rel=\"nofollow\">@vue\/compiler-sfc<\/a> \u81ea\u52a8\u5c06 <a href=\"https:\/\/link.segmentfault.com\/?enc=U7oIcQsmDp3bdfp0UlIfdw%3D%3D.4lwHbz3tp8vdDFkTB5Fi1RbgehiAp2enQcU%2BJazmxbHw7PWz%2FFDuk684D6Uouhvl\" rel=\"nofollow\">&lt;script setup&gt;<\/a> \u8bed\u6cd5\u7cd6\u8f6c\u6362\u4e3a\u4e86 <a href=\"https:\/\/link.segmentfault.com\/?enc=AO9gS%2FRiyC7ITYTJCnz0JQ%3D%3D.Iy25Vew0P8CnkCjMlkZ7RkQmy243oyke62YUEXcJNu80B0YAMWAedbpK%2Ftt7E%2FmMqjWbqP%2Bo443N28v0Xil6Mw%3D%3D\" rel=\"nofollow\">Composition API<\/a> \u98ce\u683c\u4ee3\u7801\uff0c\u5e76\u4e14\u6dfb\u52a0\u4e86\u4e00\u4e9b\u8f85\u52a9\u4ee3\u7801\u3002<\/p>\n<p>\u8fd9\u5c31\u5bfc\u81f4\u5355\u7eaf\u7684\u6839\u636e\u884c\u53f7\u6620\u5c04\u65ad\u70b9\u4f4d\u7f6e\u4f1a\u6709\u4e9b\u95ee\u9898\uff0c\u51fa\u73b0\u4e86\u65e0\u6cd5\u9884\u77e5\u7684\u9519\u4f4d\u60c5\u51b5\u3002<\/p>\n<p>\u6211\u76ee\u524d\u7684\u89e3\u51b3\u65b9\u6848\u662f\uff0c\u624b\u52a8\u5728\u5bf9\u5e94\u7684\u4f4d\u7f6e\u52a0\u4e0a <code>debugger<\/code>\uff0c\u786e\u4fdd\u80fd\u591f\u4e00\u5b9a\u547d\u4e2d\u5728\u6211\u60f3\u8981\u7684\u4f4d\u7f6e\u4e0a\u3002<\/p>\n<p>\u7136\u540e\u5728\u547d\u4e2d\u65ad\u70b9\u540e\u7684\u7f16\u8bd1\u6587\u4ef6\u4e2d\uff0c\u52a0\u4e0a\u5176\u4ed6\u60f3\u8981\u7684\u65b0\u65ad\u70b9\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460628\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h3>3. \u6539\u52a8\u540e\u4f1a\u7f16\u8bd1\u51fa\u65b0\u6587\u4ef6<\/h3>\n<p>\u524d\u9762\u5df2\u7ecf\u63d0\u5230\u8fc7\uff0c\u5728\u6bcf\u6b21\u4fee\u6539\u5b8c\u6e90\u6587\u4ef6\u540e\uff0c\u90fd\u4f1a\u7f16\u8bd1\u51fa\u65b0\u7684\u6587\u4ef6\u3002\u8fd9\u5c31\u5bfc\u81f4\u4e4b\u524d\u5728\u7f16\u8bd1\u6587\u4ef6\u4e2d\u7684\u65ad\u70b9\u5168\u90e8\u5931\u6548\u3002<\/p>\n<p>\u4e00\u987f\u8c03\u8bd5\u4e4b\u540e\uff0cVS Code \u4e2d\u4f1a\u6709\u5927\u91cf\u7684\u65e0\u6548\u65ad\u70b9\u6807\u8bb0\uff0c\u867d\u8bf4\u4e0d\u5f71\u54cd\u4f7f\u7528\uff0c\u4f46\u662f\u770b\u8d77\u6765\u6709\u70b9\u5934\u5927\u3002<\/p>\n<p>\u6211\u6682\u65f6\u6ca1\u6709\u4ec0\u4e48\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u6240\u4ee5\u53ea\u80fd\u5728\u6bcf\u6b21\u8c03\u8bd5\u7ed3\u675f\u4e4b\u540e\uff0c\u70b9\u51fb\u300cRemove All Breakpoints\u300d\u6309\u94ae\uff0c\u79fb\u9664\u6240\u6709\u65ad\u70b9\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042460629\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6211\u9047\u5230\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u5982\u679c\u4f60\u6709\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u5728\u8bc4\u8bba\u533a\u544a\u77e5\u4e00\u4e0b\uff0c\u6bd4\u5fc3 \u2764\ufe0f\u3002<\/p>\n<blockquote><p>\u672c\u6587\u9996\u53d1\u4e8e\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=JB8%2FLdKQaoAQ%2F0xCtO9eag%3D%3D.zJilni7LrJpFgSzSgAN8N3Qnt%2FN2MqY0miDDUw1DvU%2BUxfgzOqCErGQRrhy0yBpy\" rel=\"nofollow\">https:\/\/github.com\/mrlmx\/blogs\/issues\/3<\/a> \uff0c\u5982\u679c\u559c\u6b22\uff0c\u8bb0\u5f97\u53bb\u70b9\u4e2a\u8d5e\u54e6~ \ud83d\udc4d<\/p><\/blockquote>\n<h2>\u53c2\u8003<\/h2>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=YNnQGjpIOgRu3CTrpaxIhg%3D%3D.yhAHUIzKEfNQOPimbanEiA%2FxL%2F0Ri%2FnjXp0KT%2F7zkfufAsmKfOFYf%2BqxfXOLvumV\" rel=\"nofollow\">https:\/\/vuejs.org\/guide\/quick-start.html<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=VUWbI3hK432ogcJLcjB90A%3D%3D.lkvumJBoIjE%2FkqQ7MfPQYvdVBPLldEMmRdC%2FAybMzA9UVCtN6iXyFD3NWZdwnl9HWw820yR7NI8FQnBpOBQHb5GjowMeDHJssCWS174g4ns%3D\" rel=\"nofollow\">https:\/\/github.com\/Microsoft\/VSCode-recipes\/tree\/master\/vuejs-cli<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042460617\">https:\/\/segmentfault.com\/a\/1190000042460617<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u6b64\u6559\u7a0b\u4f1a\u4ee5\u4e00\u4e2a\u5168\u65b0\u7684 Vue.js \u9879\u76ee\u4f5c\u4e3a\u6a21\u677f\u8fdb\u884c\u914d\u7f6e\uff0c\u4f60\u53ef\u4ee5\u8ddf\u968f\u6559\u7a0b\u4e00\u6b65\u6b65\u64cd\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u6309\u7167\u6559\u7a0b\u5c06\u914d\u7f6e [&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-10006461","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\/10006461","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=10006461"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006461\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}