Contact form

Ecava IGX Web SCADA
  • DEMO
  • Download
  • Product
    • What’s New?
    • IGX Lite
    • IGX Standard
    • IGX Pro
    • Modules
    • Drivers
    • SVG Image Library
    • Showcase
  • Success Stories
    • Transportation
    • Power & Energy
      • Power Distribution Network System
      • Bridge Power Monitoring System
    • Building Automation
    • Oil & Gas
      • Gas Metering Validation System
      • Gas Monitoring System
    • Water & Wastewater
    • Manufacturing
    • Food & Beverage
    • Artificial Intelligence
    • System Integration
  • Support
    • Training
    • What is SCADA?
    • HMI Design: Five Simple Tips
    • Tutorial
    • User Guide
    • Blog
    • License FAQ
    • Ask Us
  • Contact
    • Email
    • Sales
    • Technical
    • Pricing
    • Distributors
  • English
    • Español
    • Русский
    • 日本語

 5.8.4. Debugging Functions

More functions are available for server side only, they are mainly for debugging purpose. These functions required debug mode to be turned on by clicking on Debug button, the debugging information will be displayed on the Status Window when Script is selected on Task Window.

debugString( String) is used to send out debugging string into Status Window.

debugTag( Tagname) simply print Tagname and its value onto Status Window.

Debugging information scrolling through in Pink text on Status Window.

Below is a sample code that demonstrates the use of debugging functions for troubleshooting. It can be copied and pasted into a script entry to see the program flow.

var a = getTag( "tagA") || 1; //default value 1
var b = getTag( "tagB") || 2; //default value 2
var c = getTag( "tagC"); //no default value

if (c > 1000) {
a = 1;
b = 2;
}

a = a + 1;
setTag( "tagA", a);

b = b + 2;
setTag( "tagB", b);

c = a + b;
setTag( "tagC", c);
debugTag( "tagC"); //this is a sample use of debugTag().

//debuging function will be executed in debug mode only
debugString( "Script is successfully executed."); //keep this as last line.

Prev Up Next
5.8.3. Database Functions Home 5.8.5. ActiveX Scripting

ECAVA INTEGRAXOR
  • What's New?
  • IGX Lite
  • IGX Standard
  • IGX Professional
  • Modules
  • Drivers
  • Showcase
 
WHY ECAVA IGX?
  • Web SCADA in the cloud
  • Easy to Use
  • Lean & Fast
  • Responsive HMI
  • Security
Online DEMO
 
DOWNLOAD
  • Runtime Engine
  • Development Tool
  • Kiosk-it Thick CLient
  • Extend Demo License
 
BUY
  • SCADA Bundle Packs
  • SVG Image Library
  • Ecava Kiosk-it
  • License FAQ
SUPPORT
  • What is SCADA?
  • SCADA Software
  • Getting Started
  • Training Centre
  • Tutorial PDF
  • User Guide
  • Blog
 
JOIN US
  • Distributors
SUCCESS STORIES
  • Transportation
  • Power & Energy
  • Building Automation
  • Oil & Gas
  • Water & Wastewater
  • Manufacturing
  • Food & Beverage
  • Artificial Intelligence
  • System Integration
 
EMAIL US
  • Sales
  • Technical
  • General
ABOUT
  • Our Team
  • The Company
  • Credit
  • Privacy Policy
  • Terms of Use
  • Contact Us
CALL US
  • Asia Pacific: +603 8080 4838
  • China: 13309944505
  • Europe: +49 30 225054780
 
(c) 2025 Ecava Sdn. Bhd. [200501009701]