Closed Bug 1536854 Opened 5 years ago Closed 5 years ago

Log errors from Logpoint as actual errors, not strings

Categories

(DevTools :: Debugger, enhancement, P2)

enhancement

Tracking

(firefox69 fixed)

RESOLVED FIXED
Firefox 69
Tracking Status
firefox69 --- fixed

People

(Reporter: Harald, Assigned: chujunlu)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image image.png

What were you doing?

Add a log point and log a non-existing variable.

What happened?

x is not defined string is being logged.

What should had happened?

ReferenceError: x is not defined should be logged as error.

Anything else we should know?

state in the example screenshot isn't defined because the source is source-mapped and the variable name mangled. The error from the console.log is how it should actually look like

Priority: -- → P2

If logpoint throws, set level to "error".
Add tests to ensure the correct level is set.

Assignee: nobody → chujunlu
Pushed by dwalsh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b275b465d1f1
Log errors from logpoint as actual errors in the console r=davidwalsh,nchevobbe
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: