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.