Issue
A graphic in EcoStruxure Building Operation WebStation generates a script error or does not operate as expected. The displayed error may not identify the exact script line where the error occurred.
Product Line
EcoStruxure Building Operation
Environment
- Building Operation WebStation
- TGML graphics
- Microsoft Edge or Google Chrome Developer Tools
Cause
The cause of a graphic script error can vary. The WebStation error message may not identify the exact script statement or condition that caused the error, requiring browser debugging tools to locate and inspect the failure.
Resolution
Debug the script error using Developer Tools
- Open the affected graphic in WebStation.
- Press F12 to open the browser Developer Tools.
- Select the Sources panel.
- Enable Pause on caught exceptions.
- Return to the graphic and perform the action that produces the error.
- When script execution pauses, review the highlighted script statement, exception message, call stack, and available variable values to identify where the error occurs.
- Resume or step through script execution as required.
Pause execution at a specific location
For additional debugging, insert the following statement into the graphic script at the location where execution should pause:
debugger;
Open the Developer Tools Sources panel and reproduce the issue. Script execution pauses at the debugger; statement so that the script state can be inspected.
Remove the statement after troubleshooting is complete.
Capture the stack trace
While the debugger is paused:
- Locate the Call Stack pane in the Sources panel.
- Right-click the call stack and select Copy stack trace.
- Paste the stack trace into a text file.
The stack trace can then be provided to Product Support to assist with further investigation.
For additional diagnostic information, refer to Collect EBO WebStation browser logs.