Is it possible to disable source maps in Firefox (version 45.0.1)?
Asked Answered
C

1

6

There is the "Show Original Sources" checkbox but it seem not working. I tried to find a way to disable source maps in FF Developer Tools and Firebug but without any success.

Screenshot

BTW: It's easy to disable them in Chrome Dev Tools.

Chronopher answered 1/4, 2016 at 13:33 Comment(4)
Not sure why you would want to disable source maps. Are you talking about only your browser, or all browsers running your code?Swick
Only my browser. I need to disable them and debug original code.Chronopher
You should add the version of Firefox you're using. Maybe it's a bug related to a specific release. Also, it would be helpful if you added an example page using source maps, so people can reproduce the issue.Newcomer
I'm using Firefox 45.0.1 (the latest version at the moment).Chronopher
J
8

I was running into this issue as well until I realized that "Show Original Sources" in Firefox actually means "Use Source Maps," so you need to uncheck Show Original Sources in order to see the raw JS without Source Maps.

Source: https://developer.mozilla.org/en-US/docs/Tools/Debugger/Settings

Juggle answered 19/10, 2016 at 2:2 Comment(2)
This is called Enable Source Maps in 68.4.1esr.Murphree
Just Source Maps now (89). Hold over it will show the tool tip explains that this option let Firefox downloads the source file. Uncheck this and refresh the page.Negatron

© 2022 - 2024 — McMap. All rights reserved.