Debugging
- Last UpdatedJun 25, 2024
- 1 minute read
To debug AVEVA Work Tasks Pro, use the following methods:
-
AVEVA Work Tasks Pro App is a mobile application and not a wrapper around the Enterprise Console website. Because of this, relative URLs used in Form scripts, etc. would not work. We recommend you to use the full URL in such cases.
To get server name in mobile device and web, use the below script:
var serverName = "";
if (skelta.forms.utilities.isWorkTasksPro())
{
serverName = skelta.utilities.getUriObjectFromString(skelta.forms.utilities.getServerUrl("")).hostname;
}
else
{
serverName = window.location.hostname;
}
-
Use SFU.logMessageToWMLogger() method to see log messages in AVEVA Work Tasks Logger. For more information, see SFU.logMessageToWMLogger.
-
AVEVA Work Tasks Pro App needs to be online for logging the log messages to server.
-
These logs will only be available in the server and not in the device.
-
-
Use mobile device logging mechanism to see logs in the external memory of the mobile device. For more information, see Logs.