Closed Bug 1852028 Opened 3 years ago Closed 2 years ago

JS Tracer: Log 'function returned'

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: Honza, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The tracer only reports when we start calling a function. But it could be useful, especially for async functions to also log when we exit a function.

In the Web Console we could have a highlight feature to help highlight function entering and exiting logs.

Complexity: we may have some significant work in the console to avoid cluttering the console output.
This may be better to implement this via a new dedicated side panel in the debugger

For now, we were only logging when we enter a function call, but not when we exit.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a64a2fcf64c5 [devtools] Log function return in javascript tracer. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Blocks: 1884717
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: