Wednesday 15 July 2015

javascript - Can't set breakpoint in source mapped file (example with jquery) -



javascript - Can't set breakpoint in source mapped file (example with jquery) -

i have problem set breakpoint on javascript source file minified mapped on real sources source map file.

the problem can demonstrated jquery.com website.

on site, imported script jquery.min.js contains //# sourcemappingurl=jquery.js directive.

this can observed on chromium 37 debugger :

on "real source file", i'm trying setup breakpoint on line 500, bug breakpoint appears on line 6955.

what is wrong utilize case ? possible ?

this happen when line set breakpoint not have proper mapping compiled source code. have checked , indeed line mapped weird (unexisiting) position in jqeury.min.js file.

consider filing jquery issue. please note, however, while in recent versions of jquery source map url not included in minified version default, can still download site , check if fixed.

javascript jquery google-chrome debugging source-maps

No comments:

Post a Comment