Labs/Test Pilot/Experiment Tutorial: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 52: Line 52:
If you have Test Pilot set up so that studies don't start until after the user is notified (this is the default setting in the version bundled with Firefox 4 beta) you can click "Notify Me" to bring up the notification immediately.  Then just close the notification or click the link, and the study will begin.
If you have Test Pilot set up so that studies don't start until after the user is notified (this is the default setting in the version bundled with Firefox 4 beta) you can click "Notify Me" to bring up the notification immediately.  Then just close the notification or click the link, and the study will begin.


= How to test and debug =
== Debugging ==
 
If your modified study doesn't show up in the drop-down menu at the top of the debug page, and doesn't show up in the usual "All Your Studies" window interface, that means it ran into a problem during startup, such as a syntax error that prevented the study file from being parsed correctly.  An error message will usually show up in the error log file:
 
(your profile directory)/TestPilotErrorLog.log
 
So check that if you're not sure what's preventing your study from running.
 
I usually debug my studies by putting dump() statements liberally throughout the code, and then starting up Firefox from a command line so I can see the output of the dump statements in the terminal window. (Make sure you have '''browser.dom.window.dump.enabled''' pref-ed on in order to use this method).  You can also use '''console.debug()''' or '''console.trace()''' statements, which will send output to the TestPilotErrorLog.log file.


= Steps to a Real Study =
= Steps to a Real Study =
1,007

edits

Navigation menu