Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you don't have any of those, then I don't see how the developer tools can figure out what the original source is. You need some way of mapping points in the minified file to lines in the original file. Ask your favorite CDN to also host a source map. Otherwise the best the developer tools can do is prettify the minified file, something both Chrome and IE do (I don't recall if Firefox Nightly does).


"If you don't have any of those, then I don't see how the developer tools can figure out what the original source is."

You don't think that un-minifying and pretty-printing the minified Javascript would be both:

a) a lot easier than debugging an error on line 1 at column 28,482? and b) technically possible?


I agree that source maps are the right solution, but even the ability to pretty-print the indentation and separate statements onto lines would work wonders.

I've had too many errors on line 1.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: