User`s guide

E-Prime User’s Guide
Chapter 4: Using E-Basic
Page 164
4.8.1 Tips to help make debugging easier
Ø Run in fixed order to verify proper stimulus selection before adding randomization.
Ø Think small -- test small portions of the program for functionality before expanding the
program.
Ø Use Debug.Print to send information to the Output window during runtime. This
information may be evaluated after the run terminates in order to verify values.
Ø In an Inline object, use Display.Canvas.Text in conjunction with a Sleep command to
display debugging information to the screen at runtime without requiring input from the
user to continue.
Ø The MsgBox command may be used to display values during the run of an experiment.
The MsgBox will not allow the program to continue until the user presses enter to dismiss
the dialog box.
Ø Assign values as attributes so that they may be displayed on a TextDisplay or Slide
object during the run of an experiment, or logged to the data file for later examination.
Ø Include comments in the script to delimit and identify the purpose of various sections of
script.