canmove, Confirmed users
409
edits
(basic Git info) |
m (source code and debugging info) |
||
Line 1: | Line 1: | ||
= Sync Source Code = | |||
Once you have a copy of the Mozilla source tree (read below for how to obtain a copy), you can find the Sync source code in: | |||
/services/sync/ | |||
You can view this online at https://hg.mozilla.org/services/services-central/file/tip/services/sync | |||
All of the code executing in the browser lives in the *modules* subdirectory. | |||
= Debugging Sync = | |||
If you are debugging Sync in your browser, the first thing you want to do is crank up the logging. In about:config, set the following preferences: | |||
# Enable logging to Error Console | |||
services.sync.log.appender.console Debug | |||
# Enable logging to STDOUT | |||
services.sync.log.appender.dump Debug | |||
# Log full sync logs on sync success (typically they are only saved on failure) | |||
services.sync.log.appender.file.logOnSuccess true | |||
Once you've updated those settings, restart Firefox for them to take effect. | |||
If you are logging to STDOUT, you may want to set the environment variable MOZ_QUIET to silence a lot of spew from other parts of Firefox: | |||
export MOZ_QUIET=1 | |||
= Using Bugzilla = | = Using Bugzilla = | ||