Open
Bug 1413050
Opened 7 years ago
Updated 2 years ago
Improve UX for expanding stacks when logging Error objects with console.error
Categories
(DevTools :: Console, enhancement, P2)
Tracking
(Not tracked)
NEW
People
(Reporter: Harald, Unassigned)
Details
Attachments
(1 file)
2.32 MB,
image/gif
|
Details |
See attached video for confusing behaviour of error objects logged with console.error
Top level stack trace that can be expanded and an error object with stack trace shown by default that can be expanded as object.
Comment 1•7 years ago
|
||
See https://github.com/devtools-html/devtools-core/issues/452 and https://github.com/devtools-html/devtools-core/issues/448
Whiteboard: [console-html][triage]
Reporter | ||
Comment 2•7 years ago
|
||
Definitely a bunch of issues here that are related to the reps:
1) Formatting of Error objects when logged
2) Clash of console.error and Error stack traces
3) Sourcemaps in errors
Updated•7 years ago
|
Whiteboard: [console-html][triage]
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Priority: P3 → P2
Comment 3•6 years ago
|
||
(In reply to :Harald Kirschner :digitarald from comment #2)
Definitely a bunch of issues here that are related to the reps:
- Formatting of Error objects when logged
- Clash of console.error and Error stack traces
- Sourcemaps in errors
- and 3. are now fixed.
Comment 4•6 years ago
|
||
We talked with Florens about stacktraces feeling a bit disconnected from the error message when the message is very long.
The thing is that we use a very generic arrow icon (▶︎) to indicate the stacktrace can be expanded. But it's the same as group and objects, which at least are close to the object they are impacting.
One idea would be to move the "global" stacktrace (i.e. the one from the exception/console.error itself, not the one from the Error message), to the right, below the location element.
Error: BOOM react-dom.js
a ComponentA.js endWork react.js
b ComponentB.js
c ComponentC.js
Type: defect → enhancement
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•