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•1 year ago
|
||
Updated•7 months ago
|
Assignee | ||
Comment 2•6 months 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•6 months ago
|
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c92b70635f3a [devtools] Introduce a generic mechanism to print web console command usage. r=devtools-reviewers,nchevobbe,flod,fluent-reviewers https://hg.mozilla.org/integration/autoland/rev/5595614a209c [devtools] Expose a "trace" webconsole command to toggle the JavaScript tracer. r=devtools-reviewers,nchevobbe,fluent-reviewers,flod
Comment 4•6 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c92b70635f3a
https://hg.mozilla.org/mozilla-central/rev/5595614a209c
Description
•