debug
- Last UpdatedJan 18, 2024
- 2 minute read
The debug statement can be used to log information on the screen. This feature is useful in the development phase to check the execution of certain operations.
-
The debug command is used inside a Command node node.
-
Debug logging works only when the application is started in debug mode. Therefore, there is no need to clean the script before release.
-
You cannot change the font format/color or position of the log.
Platform support
This node is supported on XR-Windows platform only.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
No support |
No support |
No support |
|
|
|
|
|
|
Code example
This is a code example for the debug statement.
<command name="showdebug">
<debug text="testo di debug"/>
</command>
Position
The debug statement can reside only inside a Command node node.
Fields
These are the fields for debug statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
condition |
sstring |
Optional |
No default value |
Applies a condition to the function execution. |
|
text |
sstring |
Mandatory |
No default value |
The text to be logged on screen. |