webstorm debug
vueconfig.js
中devtool
Set this parameter in the development environmentsource-map
npm run dev
Run the project (assuming the project runs onhttp://localhost:9528
)- Click on the
edit configurations
To create a Debug configuration item
- Click on the
+
To create a new configuration, selectJavaScript Debug
, you can give your configuration item a name likedebug
.url
Select the domain name and port for your project to run, and save the configuration
- And then to
debug
Run the mode you just savedThe debug configuration
(select the newly created Debug configuration and click the green bug button), a new one will automatically openChrome label
, and then hit a breakpoint in the WebStorm code to debug
chrome debug
- in
source
Panel to find the source, hit the breakpoint debugging can be