User Services/Sync/Debug Sync

Often it's helpful to provide diagnostic log data in bugs to help a developer fix an issue. Here are some tips:

Desktop

  1. goto about:config
  2. In the filter field type 'sync.log'
  3. Context click on pref and set it as:
    • services.sync.log.appender.file.logOnSuccess to True
    • services.sync.log.logger.engine.bookmarks to Trace
  4. In Firefox, go here: about:sync-log
  5. You should see Success and Error logs. You can click to open, often you will want to upload this to your bug.

You can also open the console to view errors: Tools > Web Developer > Web Console

How to force reauthentication

When you reset password this will cause all other devices to reauthenticate. To force that, edit this file:

<profile location [1] >/signedInUser.json

and delete some characters from the sessionToken value:

"sessionToken":"abcdef"

[1] Profile locations

Windows XP / 2000 / Vista / 7 	%AppData%\Mozilla\Firefox\Profiles\xxxxxxxx.default\signedInUser.json
Linux 	~/.mozilla/firefox/xxxxxxxx.default/signedInUser.json
Mac OS X 	~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/signedInUser.json

Android

adb setprop log.tag.FxSync VERBOSE
adb setprop log.tag.FxAccounts VERBOSE
adb setprop log.tag.FxAccountSyncAdapter VERBOSE
    • Tether your device and make sure your computer can see it by running:
adb devices
    • Run this
adb logcat | grep -i 'account'

HTTP Logging

This may also be helpful to observe http traffic details: