Closed
Bug 1363066
Opened 8 years ago
Closed 7 years ago
Unable to collapse console.error message in console (old frontend)
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: heathbo1, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170418004027
Steps to reproduce:
Go to Developer Tools/Console. Make sure Logging/Errors is checked. Go to any website that logs an error.
Actual results:
Logged Error shows up in console. Collapse triangle is closed but the content of the error is displayed. Clicking the Collapse triangle has no effect.
Expected results:
Clicking the collapse triangle should should hide or show logged content.
Updated•8 years ago
|
Component: General → Developer Tools: Console
Product: Mozilla Developer Network → Firefox
Comment 1•8 years ago
|
||
Is there a particular page you can reproduce this on? When testing locally I'm able to expand and collapse an error.
Here's a URL where I see the expand/collapse working: data:text/html,<script>console.error('test')</script>
Flags: needinfo?(heathbo1)
The error is an "Unable to parse service response" error.
Nothing shows when I open the carrot.
All I have is a very big "Stack trace" under it.
Flags: needinfo?(heathbo1)
Comment 3•8 years ago
|
||
(In reply to heathbo1 from comment #2)
> The error is an "Unable to parse service response" error.
> Nothing shows when I open the carrot.
> All I have is a very big "Stack trace" under it.
Can you please upload a screenshot?
Comment 5•8 years ago
|
||
OK, it looks like maybe console.error is being called with an Error object as a parameter instead of a string (which is what causes the stack to show up by default). I believe if it the code was doing something like console.error("Unable to parse service response") instead of console.error(new Error("Unable to parse service response")), it might give you nicer looking output where the stack trace is only visible after expanding. However, even with an Error as an argument the arrow should be opening up a more detailed view of the stack trace.
Updated•8 years ago
|
Summary: Unable to collapse Logging bugs in Developer Tools console → Unable to collapse console.error message in console (old frontend)
Updated•8 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 6•7 years ago
|
||
Let's close it since there was significant work around error stacktrace lately
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•