DevTools/Hacking: Difference between revisions

Jump to navigation Jump to search
Line 48: Line 48:
Depending on what you are working on, you may want to make some changes to your profile to enable more logging. If you type  '''<tt>about:config</tt>''' in the URL bar, click through the warning page, and search for '''<tt>devtools</tt>''' you can see some of them.
Depending on what you are working on, you may want to make some changes to your profile to enable more logging. If you type  '''<tt>about:config</tt>''' in the URL bar, click through the warning page, and search for '''<tt>devtools</tt>''' you can see some of them.


  # Add the global "dump" function to all windows which logs strings to stdout.
Add the global "dump" function to all windows which logs strings to stdout.
 
   '''browser.dom.window.dump.enabled''' = true
   '''browser.dom.window.dump.enabled''' = true


  # Dumps all packets sent over the remote debugging protocol to stdout (requires browser.dom.window.dump.enabled):
Dumps all packets sent over the remote debugging protocol to stdout (requires browser.dom.window.dump.enabled):
 
   '''devtools.debugger.log''' = true
   '''devtools.debugger.log''' = true


  # Log every event notification from the EventEmitter class (toolkit/devtools/event-emitter.js) (requires browser.dom.window.dump.enabled)
Log every event notification from the EventEmitter class (toolkit/devtools/event-emitter.js) (requires browser.dom.window.dump.enabled)
 
   '''devtools.dump.emit''' = true
   '''devtools.dump.emit''' = true


Confirmed users
125

edits

Navigation menu