Allows to do a debug in a line code.
1 debug.log
<debug.log batch='true|false'>
<text /> ?
</debug.log>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Abatch | boolean |
The batch attribute indicates if the message should be issued only when the XSQL-Script is executed in batch mode (from the command line). This means that it allows to have debug only when it is executed from command lines and if it is executed one time, it is cataloged in the dictionary database (internally from the application) the message will not come out. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | String |
Example
Activate the debug for a line code.
Copy
<xsql-script name='debug_on_sample1'> <body> <debug.log batch='true'> <set name='a'> hello world </set> </debug.log> </body> </xsql-script>
Executing the previous script will obtain the following output due to the tag <debug.log>:
Copy
00:00.000:[1] C:\jas\test: hello world
Indicating the execution time of the line and the name of the performed script.