Debug vue-cli 3 generated app from Visual Studio Code
问题 I generated an app using vue-cli 3.0.0-rc.3 Now I want to debug it using Visual Studio Code (Debugger for Chrome) however I can't seem to find the option to turn on sourceMaps. I set the breakpoint in VSCode but it is not hit. If I specify: "sourceMaps: true" in vue.config.js, I got an error "Invalid options in vue.config.js: "sourceMaps" is not allowed" What option needs to be set for debugging to work? 回答1: According to the Official cookbook these steps needs to be done: vue.config.js file