Problem is that debugger not only stepping into the right source files but also its stepping into app.js file which is autogenerated by Webpack. How can I prevent it from doing that ?
I have following setup:
I initiated Vue.js 2 app using vue-cli
. My debugging configuration looks like this:
I also added this line to "webpack.dev.conf.js"
; devtool: "source-map"
,
And I also added app.js file to exceptions in the debugger config:
I start server using npm run dev
command, and then starting debugging session from WebStorm. Problem still exists. Any ideas ?
vue-debug-webstorm.md To actually debug: Run->Run->(choose the “start” configuration. Then Run->Debug->choose the “debug” configuration.
Go to the Debug view, select the 'vuejs: chrome/firefox' configuration, then press F5 or click the green play button.
Vue 2 has now entered maintenance mode: it will no longer ship new features, but will continue to receive critical bug fixes and security updates for 18 months starting from the 2.7 release date. This means Vue 2 will reach End of Life by the end of 2023.
Please check on the following two points:
Change the devtool
configuration to value 'eval-source-map'
or '#eval-source-map'
(I don't know the difference between adding '#' sign or without '#' sign, but I tested both can work as expected) in your effective webpack configuration file.
Add debug configuration just as the same step of yours. When you click that debug configuration from WebStorm, the system will automatically popup one window(Google Chrome or Firefox), please make sure you only doing your debug from this page, only the action triggered in this page is synchronized with your WebStorm Editor. This is very important!
It works from my dev env now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With