Closed Bug 990815 Opened 11 years ago Closed 7 years ago

Error when loading sourcemapped source

Categories

(DevTools :: Debugger, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1400856

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

I suspect this is because the source is absolute and things are weird for whatever reason.

Here is the stack trace:

    Error loading source:
    Could not load the source for http://localhost:8080/examples/basic-jsx-external/example.js.
    Error: "example.js" is not in the SourceMap.
    Stack: SourceMapConsumer_sourceContentFor@resource://gre/modules/devtools/SourceMap.jsm:391:7
    SourceActor.prototype._getSourceText@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/script.js:2627:1
    resolve@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/core/promise.js:118:11
    then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/core/promise.js:43:43
    then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/core/promise.js:153:9
    SourceActor.prototype.onSource@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/script.js:2653:1
    DSC_onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js:1110:9
    LDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258:11
    makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:82:7
    Line: 391, column: 6
Attached file testcase.html (deleted) —
Thanks Nick :)
Attached file sourcemap-testcase.zip (deleted) —
Summary: Error loading source mapped source: "example.js" is not in the SourceMap → Error when loading sourcemapped source
Priority: -- → P3
No error message now, but example.js isn't seen in the debugger at all.
I only tried the new debugger.
This might be the same as the systemjs problems, where source mapping isn't
done properly for script tags.
See bug 1223439.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: