up Inquisit Language Reference

debugbreak function

Stops script execution and opens the Debugger Watch Window.

Member of

<script>

Syntax

element.name.debugbreak()

Parameters

None.

Examples

The following stops the script if the user responds with the space bar:

<trial consent>
/ ontrialend= [if ( trail.consent.response == 57 ) script.debugbreak();]
</trial>

The following stops the script if performance dips below threshold:

<trial sometrial>
/ ontrialend= [if ( trial.sometrial.percentcorrect <= 50% ) script.debugbreak();]
</trial>

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