Closed
Bug 1116113
Opened 10 years ago
Closed 6 years ago
Developer edition/Browser Console: Turning off Javascript Log hides uncaught exceptions by addon code.
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: najamelan, Unassigned)
References
(Blocks 1 open bug)
Details
The browser console has three warning levels for JavaScript (Error, Warning and Log) Somehow all warnings (uncaught exceptions) from addon (or all chrome?) code end up in the log section, making it impossible to see errors without a lot of noise (debug and info messages).
The problem also affects the addon debugger, since that only provides Error and Warning, which means that exceptions in the addon being debugged don't show up at all. That's not very good for debugging.
Also I have the impression that log messages aren't parsed the same way, so call stack traces are output with no formatting whatsoever which makes them very unreadable:
1419852990126 addons.xpi WARN Exception running bootstrap method startup on addon@example.com: TypeError: browser.document is undefined (chrome://addon/content/Someclass.js:193:3) JS Stack trace: method@Someclass.js:193:4 < init@bootstrap.js:60:3 < Class@bootstrap.js:51:3 < startup@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///xxx/.mozilla/firefox/qsdfmlkm.dev-edition-default/extensions/addon@bootstrap.js:14:22 < XPI_callBootstrapMethod@XPIProvider.jsm:4436:9 < AI_startInstall/<@XPIProvider.jsm:5820:13 < TaskImpl_run@Task.jsm:330:41 < Handler.prototype.process@Promise-backend.js:870:23 < this.PromiseWalker.walkerLoop@Promise-backend.js:749:7 < this.PromiseWalker.scheduleWalkerLoop/<@Promise-backend.js:691:37
Btw, I would have stressed my 3G connection to download a nightly build, but neither of these provides that:
https://nightly.mozilla.org/
https://developer.mozilla.org/en-US/Firefox/Developer_Edition
Blocks: dbg-addon
Reporter | ||
Comment 1•10 years ago
|
||
Some more issues with the Console:
It doesn't seem to word wrap at the screen width, so I always have to scroll to the right quite far to see the file:linenumber that caused the console entry.
Another thing that is handier in the error console is that you can right click/copy for the whole entry, whereas for the consoles you can only copy text that you have selected. This might be by design, but it seems better to allow copying everything especially if the user selects copy while having selected nothing.
No longer blocks: dbg-addon
(In reply to Naja Melan from comment #1)
> Some more issues with the Console:
>
> It doesn't seem to word wrap at the screen width, so I always have to scroll
> to the right quite far to see the file:linenumber that caused the console
> entry.
>
> Another thing that is handier in the error console is that you can right
> click/copy for the whole entry, whereas for the consoles you can only copy
> text that you have selected. This might be by design, but it seems better to
> allow copying everything especially if the user selects copy while having
> selected nothing.
Once again, please file new bugs for separate issues. It is not helpful to lump a bunch of unrelated issues into one bug.
Blocks: dbg-addon
Reporter | ||
Comment 3•10 years ago
|
||
ok, I'll file two more issues for this but then I have to get back to work really.
Comment 4•9 years ago
|
||
When I installed the "developer edition" the javascript errors appears as a small red baloon on the bottom, one day I click on the "x" and it goes forever..
The only way to debug javascript is opening the browser console (in a separate window)
After googling a lot, and a few hacks, can't find a way to get it back.
Comment 5•9 years ago
|
||
(In reply to DarkAngelBA from comment #4)
> When I installed the "developer edition" the javascript errors appears as a
> small red baloon on the bottom, one day I click on the "x" and it goes
> forever..
> The only way to debug javascript is opening the browser console (in a
> separate window)
> After googling a lot, and a few hacks, can't find a way to get it back.
--> It happened just after the Multithread Beta!! has the same "issue" with firebug
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 6•6 years ago
|
||
We don't have such levels anymore.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•