Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Getting loadSourceError using the debugger when trying to open a file referenced by a sourcemap

  • 3 प्रत्युत्तर
  • 1 यह समस्या है
  • 1 view
  • के द्वारा अंतिम प्रतियुतर kanjitattoo

more options

Specifically, when using the debugger and trying to open up a source JS file that is referenced in a sourcemap, I now get:

Error loading source: loadSourceError

Yesterday it was working perfectly. The only thing that seems to have changed was updating to version 36.0

Specifically, when using the debugger and trying to open up a source JS file that is referenced in a sourcemap, I now get: Error loading source: loadSourceError Yesterday it was working perfectly. The only thing that seems to have changed was updating to version 36.0

All Replies (3)

more options

Hi kanjitattoo, In order to further investigate, do you have an example?

more options

Initially I didn't post more information as I figured it might be a known bug with the new release. I am working on a website which is running locally on my machine. All of my source JS files get compiled into one large JS file along with a .map file: component.js component.js.map

component.js ends with:

//# sourceMappingURL=component.js.map


The .map file (served from the website along with component.js) starts with: {

 "version": 3,
 "file": "/Users/charles.thomas/code/web-xxx-aaa-bbb/dist/component.js",
 "sources": [
  ......

If I go to the debugger tab (with Show Original Sourced turned on), I can search for and see an entry for the original source files in the popup. I think that the problem may be that the original source files can only be accessed via the file system whereas the I see an HTTP url underneath each source in the popup relative to the http url of the initial file. If that is how it is trying to access them then it will fail. A few days ago it was working fine, I could search for the source files and see them in the debugger as well as set breakpoints.

kanjitattoo द्वारा सम्पादित

more options

Is there a way to turn on some logging so that I can see more information about the loadSourceError? If it is trying to correctly access the local file system I wonder if something changed in the new update that causes a Mac OSX security issue.