DXR will be turned off on Tuesday, December 29th. It will redirect to Searchfox.
See the announcement on Discourse.

DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c68fe15a81fc)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
Debugging
=========
=========


Increasing the logging verbosity
--------------------------------


To increase the internal logging verbosity you can use the
`remote.log.level` [preference].

If you use mach to start Firefox:


	./mach run --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 `toolkit.dump.emit` [preference]:


    ./mach run --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
code and it can sometimes be useful to log these to see what is
available and when they are fired.
available and when they are fired.

The `MOZ_LOG` environment variable controls the C++ logs and takes
the name of the subsystem along with a verbosity setting.  See
the name of the subsystem along with a verbosity setting.  See
[prlog.h] for more details.

	MOZ_LOG=ObserverService:5

You can optionally redirect logs away from stdout to a file:
You can optionally redirect logs away from stdout to a file:

	MOZ_LOG_FILE=service.log

This enables `LogLevel::Debug` level information and places all
output in the file service.log in your current working directory.
output in the file service.log in your current working directory.


[preference]: ./Prefs.html
[System observer notifications]: https://developer.mozilla.org/en-US/docs/Archive/Add-ons/Overlay_Extensions/XUL_School/Observer_Notifications
[prlog.h]: https://searchfox.org/mozilla-central/source/nsprpub/pr/include/prlog.h