Closed
Bug 1311675
Opened 8 years ago
Closed 7 years ago
source mapping unused in console without further explanation
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: heri+mozilla, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160923225245
Steps to reproduce:
In my ClojureScript code I call (.log js/console "Message")
Actual results:
..., but when this message is displayed in the JavaScript console of Firefox 49.0.1, the link on the right side of the line is to the generated JavaScript file "core.js:32:1", instead of the ClojureScript code.
Expected results:
I would expect an output like this: https://wiki.mozilla.org/DevTools/Features/SourceMap#6._User_experience_design
Reporter | ||
Comment 1•8 years ago
|
||
Further information and my actual question, for which there was no field in the bug-report form:
When I click the link, the generated JavaScript source that Firefox shows me contains the comment "//# sourceMappingURL=core.js.map?rel=1476965238769" at the bottom. I can manually fetch this file, which contains a local absolute path in the "file" property of the JSON object and also the field "sources":["core.cljs?rel=1476965238771"]. That file is also retrievable using my browser and contains the actual ClojureScript code.
How can I debug further why the original source is not being linked to in the JavaScript console, as shown in the design document linked above?
Reporter | ||
Comment 2•8 years ago
|
||
P.S: In the JavaScript debugger I find the file "core.cljs?rel=1476965238771" listed on the left and it contains the ClojureScript source code. "core.js" (the file linked to from the JavaScript console) is not listed there.
Reporter | ||
Updated•8 years ago
|
Blocks: dbg-sourcemap, 1179813
Summary: SourceMappingURL unused without further explanation → source mapping unused in console without further explanation
It looks like bug 1309493.
Component: Untriaged → Developer Tools: Console
Updated•8 years ago
|
Priority: -- → P2
Updated•8 years ago
|
Blocks: source-maps
Updated•8 years ago
|
Priority: P2 → P3
Comment 4•8 years ago
|
||
Hi. I suspect this is fixed, but I was wondering if you could try Nightly yourself to see.
If not, I may need a bit of help setting this up, as I don't know ClojureScript.
Flags: needinfo?(devurandom)
Comment 5•7 years ago
|
||
I wrote a clojurescript example and it worked for me.
However I wonder if the query parameter is causing a problem.
Comment 6•7 years ago
|
||
Seems fixed. devurandom, feel free to re-open the bug if you still have issues.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Firefox → DevTools
Reporter | ||
Comment 7•6 years ago
|
||
I recently observed the "....js" links to source in the web console change to "....cljs" a (split) second after loading the page. This also works for `(.log js/console "Message")`. I confirm this issue is fixed.
Flags: needinfo?(devurandom)
You need to log in
before you can comment on or make changes to this bug.
Description
•