Please refer to ERROR: Common E-Prime Error Numbers/Messages and Solutions [18011] for a listing of design-time and runtime errors, and suggestions for resolving them.
Compile Errors
A compile error occurs during the process of compiling. It is not a logical error, but a syntax error (e.g., incorrect number of parameters, typing mistake, etc.). In E-Studio, a compile error can arise after clicking the Generate or the Run button, selecting Generate or Run in the E-Run menu, or pressing CTRL+F7 for Generate and F7 for Run.
Runtime Error
After completing the process of compiling, a runtime error is an error thrown during program execution when a line in the script cannot be completed. For specific examples of runtime errors, refer to the table under Locating Errors below. A runtime error may arise after the experiment has been launched and the startup information has been accepted. The experiment begins to run, but E-Run terminates when the error is encountered in the script. If running from E-Studio, an error dialog is displayed announcing the cause of the runtime error. If running from E-Run, E- Run displays an error dialog and returns to E-Run upon dismissal, with the cursor placed in the script at the line where the error occurred.
Spelling errors are the most common runtime errors in E-Studio. For example, the error below occurred due to the misspelling of an attribute (i.e., “Simulus” instead of “Stimulus”).
Locating Errors
When an error occurs, the error dialog displays the type of error (i.e., compile or runtime), the error description, and the location of the error in the script (i.e., line and column). If running from E-Studio, the Script window is automatically opened in E-Studio, and the cursor is placed at the line in the full script where the error was encountered.
To view an error message after the error dialog has been dismissed, display the Output window in E-Studio via the View menu. Compile errors are displayed on the Generate tab, and runtime errors are displayed on the Debug tab.
To search for the specific line in the script, press CTRL+G to present the Go To dialog, and enter the Line number of the error in the field provided.
The output displayed on the Generate tab is overwritten during each successive generation. Output sent to the Debug tab is appended. To clear the Debug tab, right click in the Output window and select the Clear command.
Next Article: E-RUN: Experiment Shortcuts [22923]
Previous Article: E-RUN: Terminating an Experiment [22675]
Comments
0 comments
Please sign in to leave a comment.