PennController.Debug() (since PennController 1.2)
Note: since PennController 1.4, this command is executed by default so you no longer need to call it.
Runs your experiment in Debug mode.
A pop-in console appears at the bottom-right corner of the page when your experiment runs in Debug mode. The Debug console gives you information on the experiment’s structure and on the current trial. Buttons in the Sequence and Log tabs let you force the experiment to move on to the next steps/trials. The Tables tab lists the tables available to your script, which you can click to explore.
Make sure to use PennController.DebugOff() (since PennController 1.4) before running the final version of your experiment (the items variable will then be undefined during runtime).
[js try=”data” highlight=1]PennController.Debug()
newButton(“hello”, “Hello world”)
PennController.AddTable( “Words” ,
PennController.Template( “Words” ,
row => PennController(