Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting wrong breakpoints / lines in Chrome when using this template out-of-the-box #589

Closed
0xgeert opened this issue Mar 9, 2017 · 5 comments

Comments

@0xgeert
Copy link

0xgeert commented Mar 9, 2017

Using this template out-of-the-box I'm having issues with setting breakpoints in Chrome. Specifically:

  • setting a breakpoint doesn't stop at that point (nor anywhere else afaik)
  • some lines on which a breakpoint should be possible cannot be set.

I'm running my dev env with npm run dev

This happens on both .vue as well as normal .js-files.

Additionally, I thought this might be an issue with hot-reloading but it happens on a clean run of npm run dev as well as on consecutive runs.

Is this a known issue? Any workarounds?

@0xgeert 0xgeert changed the title Getting wrong breakpoints / lines in Chrome Getting wrong breakpoints / lines in Chrome when using this template out-of-the-box Mar 9, 2017
@0xgeert
Copy link
Author

0xgeert commented Mar 9, 2017

Investigating a bit further changing from #cheap-module-eval-source-map to #cheap-module-source-map seems to solve it for now. Leaving this open for a while to see how it goes.

@tsneed290
Copy link

Had similar issues. Changed "#cheap-module-eval-source-map" to "#source-map" in webpack.dev.conf.js and I'm good now.

I also have this issue when running unit tests in Chrome browser (which uses #inline-source-map). Changing that to "#source-map" didn't seem to work. Hoping someone has a good workaround for that case :)

@TheMechanic
Copy link

@tsneed290 : I'm not working with Vue currently, but i have a very similar config. I encoutered the same issues. the devTool param is not the same for dev and for test, because test use karma-sourcemap-loader, and I'm pretty sure that prevent to use the same config :(
For me breakpoints with "#inline-source-map" in test runs, but i have some weird behaviours, and no way to access variables in console, no mapping there...

@0xgeert 0xgeert closed this as completed Mar 31, 2017
@0xgeert
Copy link
Author

0xgeert commented Mar 31, 2017

wrong close

@0xgeert 0xgeert reopened this Mar 31, 2017
@dweremeichik
Copy link

duplicate of #520?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants