Console for Debug
A short guide explaining how to use the Analysis console to monitor script variables, view errors and log output, and clear the console in TagoIO.
Use the console to monitor the variables and status of your script. You can see any error or text generated by console.log (or context.log). This console is a simple and useful debugging tool.
Console UI
- Tabs available: General Information, Environment variables, Console, Examples, Tags, More.
- Clear Console button: clears all output shown in the console area.
How it works
1. Console screen: Any error or response generated by console.log (or context.log) will appear here. 2. Clear Console: clears everything currently shown in the console screen.
Example
Use console.log in your Analysis script to write to the console:
console.log('Debug message:', myVariable);
Learn more about Analysis.