Increasing the logging verbosity¶
To increase the internal logging verbosity you can use the
If you use mach to start Firefox:
./mach run --setpref "remote.enabled=true" --setpref "remote.log.level=Debug" --remote-debugger
Enabling logging of emitted events¶
To dump events produced by EventEmitter,
including CDP events produced by the remote agent,
you can use the
./mach run --setpref "remote.enabled=true" --setpref "toolkit.dump.emit=true" --remote-debugger
Logging observer notifications¶
System observer notifications are used extensively throughout the code and it can sometimes be useful to log these to see what is available and when they are fired.
MOZ_LOG environment variable controls the C++ logs and takes
the name of the subsystem along with a verbosity setting. See
prlog.h for more details.
You can optionally redirect logs away from stdout to a file:
LogLevel::Debug level information and places all
output in the file service.log in your current working directory.