Obtains the status of the debug option.

1 system.getDebug

<system.getDebug />
Example

Obtain the debug status.

Copy
<xsql-script name='system_getDebug_sample1'>
    <body>
        <if>
            <expr><system.getDebug /></expr>
            <then>
                <println>xsql-script with debug option ACTIVATED</println>
            </then>
            <else>
                <println>xsql-script with debug option DISABLED</println>
            </else>
        </if>
    </body>
</xsql-script>

Imagine that the command used for the script execution (ws-dbscript), has been specified as debug (through the opction -debug). If during the script execution, you ask for the status of this option, the result shown on screen would be:

Copy
xsql-script with debug option ACTIVATED