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)

defect

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.
Component: General → Developer Tools: Console
Product: Mozilla Developer Network → Firefox
Attached image error-collapse.gif
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)
(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?
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.
Summary: Unable to collapse Logging bugs in Developer Tools console → Unable to collapse console.error message in console (old frontend)
Priority: -- → P3
Product: Firefox → DevTools
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.

Attachment

General

Created:
Updated:
Size: