Expose a console command to toggle JavaScript tracing
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox122 fixed)
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Given that exposing console API to web page is a bit tricky (bug 1826389), it can be helpful to expose toggling the tracer via a WebConsole command (ex: :trace ...options... ).
It would be especially useful to start exposing experimental options to help fine tune the behavior of the tracer. The button in the debugger makes it hard to expose options easily.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
We can start printing usage description right into the console by using :command --help or :command --usage.
I also simplified the integration between eval-with-debugger and manager
in order to fully delegate command execution to the manager.
Also improved the jsdoc for the register method. This new feature will be covered by test in the next patch.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c92b70635f3a
https://hg.mozilla.org/mozilla-central/rev/5595614a209c
Description
•