Skip to content

Conversation

@GeoffreyBooth
Copy link
Contributor

This one-line PR fixes #350, where the source maps are offset by the number of lines above the <script> opening tag:

image

(Line 14 is supposed to be highlighted, not line 21. And the brighter-colored line numbers should correspond with the lines where there is source code; picture them shifted up 8 lines each.)

Once this is merged in, not only will debugger statements be highlighted on the proper line, but you can also just click on the line number in the gutter in DevTools to set a breakpoint on that line (you know, how it’s supposed to work). Fixes akryum:vue-coffee too.

@Akryum Akryum merged commit 4dd9c48 into meteor-vue:master Aug 29, 2019
@GeoffreyBooth GeoffreyBooth deleted the fix-source-maps branch August 29, 2019 14:24
@GeoffreyBooth
Copy link
Contributor Author

Thanks so much @Akryum! Do you mind please publishing a new version to Atmosphere?

@Akryum
Copy link
Collaborator

Akryum commented Aug 29, 2019

Will do soon

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

Successfully merging this pull request may close these issues.

Debugging .vue files in chrome

2 participants