up Inquisit Language Reference

debugtrace function

This function sends messages to the Inquisit output window during the execution of the script.

Member of

<script>

Syntax

element.name.debugtrace()

Parameters

None.

Examples

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>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.