Closed Bug 1544495 Opened 6 years ago Closed 6 years ago

DevTools: pretty print gets disabled when sourceMappingURL is present

Categories

(DevTools :: Debugger, defect)

66 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1361271

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.

Component: Untriaged → Debugger
Product: Firefox → DevTools

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)

I agree this is frustrating. This is something we'll likely fix, but I can't say when specifically.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.