Closed Bug 1977868 Opened 9 months ago Closed 9 months ago

Tweak about:logging preset/settings to help record JavaScript traces

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

about:logging would be a really great tool to help record WebCompat issues happening on mobile and then share a profiler record of it.

But, for now, the profiler record is only saving samples of JavaScript calls, whereas the profiler now support recording all function calls via the "tracing" setting.

May be, alongside the Enable stack traces for log messages checkbox, we could have a Record all JavaScript function call one? (or Enable JavaScript tracing?) This would help slice in the "tracing"` setting to the profiler.

Also, there is two log modules which would be handy to have:

  • console, which captures all console API calls
  • PageMessages, which captures all gecko warnings and errors sent to the console
    Would that be meaningful to add a "Web Developer", "Web Compat", "Web Debugging" preset with these two?
    I'm less confident about this as it feels pretty ortogonal to the existing list of preset which are rather defined to independent layers or features of the web.

(In reply to Alexandre Poirot [:ochameau] from comment #0)

Would that be meaningful to add a "Web Developer", "Web Compat", "Web Debugging" preset with these two?

For the "someone else records us something to show an issue we can't reproduce ourselves", having more data available is usually not a bad thing. We can filter/ignore things if we don't need them, but we can't always get immediate responses/additions from someone who can reproduce.

Assignee: nobody → poirot.alex
Attachment #9502094 - Attachment description: WIP: Bug 1977868 - Allow recording JavaScript traces from about:logging. → Bug 1977868 - Allow recording JavaScript traces from about:logging.
Status: NEW → ASSIGNED
Attachment #9502095 - Attachment description: WIP: Bug 1977868 - Add about:logging preset to help record web compat issues. → Bug 1977868 - Add about:logging preset to help record web compat issues.
Attachment #9502094 - Attachment description: Bug 1977868 - Allow recording JavaScript traces from about:logging. → WIP: Bug 1977868 - Allow recording JavaScript traces from about:logging.
Attachment #9502095 - Attachment description: Bug 1977868 - Add about:logging preset to help record web compat issues. → WIP: Bug 1977868 - Add about:logging preset to help record web compat issues.
Attachment #9502094 - Attachment description: WIP: Bug 1977868 - Allow recording JavaScript traces from about:logging. → Bug 1977868 - Allow recording JavaScript traces from about:logging. r=padenot
Attachment #9502095 - Attachment description: WIP: Bug 1977868 - Add about:logging preset to help record web compat issues. → Bug 1977868 - Add about:logging preset to help record web compat issues. r=padenot
Pushed by apoirot@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/be4b9529a418 https://hg.mozilla.org/integration/autoland/rev/880ba5e83991 Allow recording JavaScript traces from about:logging. r=padenot,fluent-reviewers,bolsson https://github.com/mozilla-firefox/firefox/commit/c6a59d8401ce https://hg.mozilla.org/integration/autoland/rev/beee63c80e97 Add about:logging preset to help record web compat issues. r=padenot,fluent-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: