DevTools: pretty print gets disabled when sourceMappingURL is present
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
People
(Reporter: jakub.g.opensource, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
Have a JavaScript file with //# sourceMappingURL=... at the end
Actual results:
There's no "pretty print" button next to that file in DevTools.
Expected results:
I should have been able to pretty-print it.
I assume this might be a feature not a bug. The problem though is that I tried to debug the JS in question through source maps, and all the variables in scope were undefined, which means that there's some issue with source mapping, and at the same time, I'm not able to debug the actual code (which aside from that could be useful in some situations).
(I stripped the sourceMappingURL comment from the file and then I was able to pretty-print it)
Comment 2•6 years ago
|
||
I agree this is frustrating. This is something we'll likely fix, but I can't say when specifically.
Description
•