This function sends messages to the Inquisit output window during the execution of the script.
<script>
None.
The following writes the count of a given trial to the Output Window:
<trial consent>
/ ontrialend= [script.debugtrace(trial.sometrial.count);]
</trial>
The following writes a message to the Output Window when percent correct drops below 50:
<trial sometrial>
/ ontrialend= [if ( trial.sometrial.percentcorrect <= 50% ) script.debugtrace("Percent correct below 50, currently at <% trial.sometrial.percentcorrect %>");]
</trial>