Closed Bug 1410590 Opened 7 years ago Closed 6 years ago

'sourceMaps is null' when opening any file in DevTools

Categories

(DevTools :: Debugger, defect)

57 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1507260

People

(Reporter: pacemkr, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171019140425

Steps to reproduce:

I disabled source maps in devtools settings.

Same issue reported here: https://stackoverflow.com/q/46679233/1959


Actual results:

I cannot open any file in devtools anymore. Instead of file contents I see the text 'sourceMaps is null'.

Toggling the source maps setting in dev tools does not fix the issue.
Manually toggling the 'devtools.debugger.source-maps-enabled' setting in about:config seems to have fixed the issue.
Restarting the browser also did not fix the issue.
TypeError: sourceMaps is null in debugger.js:19729:11

And spoke too soon, toggling the devtools.debugger.source-maps-enabled doesn't seem to fix anything. The problem came back and I'm still unable to load any file in dev tools.
Component: Untriaged → Developer Tools
I don't see the "sourceMaps is null" in the editor, but I do see it in the browser console.
For me the editor just says "Loading..." and never changes.

The browser console says:

TypeError: sourceMaps is null[Learn More]  debugger.js:25005:1

I actually see several reports with different line numbers.


These STR worked for me:
* Turn the source map pref off
* Open https://tromey.github.io/source-map-examples/simple/index.html
* Open devtools
* Switch to debugger
Blocks: source-maps
Status: UNCONFIRMED → NEW
Component: Developer Tools → Developer Tools: Debugger
Ever confirmed: true
My UserAgent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0

This bug also have reproduce on Firefox 58.
Browser console is nothing to say, editor just say "loading...".
I have this exact same issue on Firefox 57.0.1 (64-bit) OSX. 

After disabling source maps on the dev tools, all .js sources under the debugger show "sourceMaps is null" even after enabling source maps again.

It basically makes firefox useless for js debugging, which is a shame since I was trying to move away from chrome.
Same issue here. Not being able to debug Javascript makes the devtools useless.

Firefox 57.0.1 (64-bit) OSX
Same issue with my Firefox 57.0.2 on Windows 10 (UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0)
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: