Generates a trap for futures executions of a script.
 

1 debug.trap

<debug.trap
    name='name'
    times='times'
>
    <debug /> !
</debug.trap>

Remarks

Generates in memory (of the application server) a trap to futures executions of the script specified in the attribute name. The attribute times indicates the number of times which the trap will have effect. To obtain the full use of this command, the label <debug> specified as argument, should contain the attribute dump with the value true.

Example

Generates a trap from DBStudio.

Copy
<xsql-script>
    <body>
        <debug.trap name='gcompedh' times='2'>
            <debug mailto='mymail@deister.es' dump='true' />
        </debug.trap>
    </body>
</xsql-script>

A trap is configured for the 2 following executions of the XSQLScript gcompedh. The debug information will be sent by e-mail to the specified mail in the attribute mailto, also it will contain statistics of use and SQL response time (dump='true').