Toolkit:Password Manager/Debugging: Difference between revisions

Jump to navigation Jump to search
(→‎View the Logging: export info)
Line 10: Line 10:
# To view the logging, open the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console Browser Console] and/or Browser Content Toolbox (for logs related to in-page stuff) from the Tools → Web Developer menu. If you don't see these, follow the instructions on the MDN page to enable it.
# To view the logging, open the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console Browser Console] and/or Browser Content Toolbox (for logs related to in-page stuff) from the Tools → Web Developer menu. If you don't see these, follow the instructions on the MDN page to enable it.
# Make sure the log level toggles ("Errors", "Warnings", "Logs", …, "Debug") are all enabled (blue) in the Browser Console. "CSS" should ideally be disabled.
# Make sure the log level toggles ("Errors", "Warnings", "Logs", …, "Debug") are all enabled (blue) in the Browser Console. "CSS" should ideally be disabled.
# Load a web page in in the browser. You should see messages in the Browser Console like:
# Load the problematic web (or about:logins) page in in the browser. You should see messages in the Browser Console like:
  LoginManagerContent: onDOMFormHasPassword for <nowiki>https://www.google.com</nowiki>
  LoginManagerContent: onDOMFormHasPassword for <nowiki>https://www.google.com</nowiki>
  nsLoginManager: Counting logins matching host: <nowiki>https://www.google.com</nowiki>, formSubmitURL:  httpRealm: null
  LoginManager: Counting logins matching host: <nowiki>https://www.google.com</nowiki>, formSubmitURL:  httpRealm: null
All password manager logging contains the string "login" in the prefix so you can type the word "login" in the "Filter output" box of the Browser Console to filter out other content.
All password manager logging contains the string "login" in the prefix so you can type the word "login" in the "Filter output" box of the Browser Console to filter out other content.
To copy messages, select the text and copy the usual way e.g. choose Copy from the context menu.
 
To copy/save the logs, right-click in an open area of the console and choose "Export visible messages to" and choose "Clipboard" or "File" depending on which you prefer. Include them as an '''attachment''' on your bug report, not in the body of a comment.


= Common Problems =
= Common Problems =
Confirmed users
933

edits

Navigation menu