21
VBScript Debugging in InduSoft Web Studio

Debugging VBScript in InduSoft Web Studio Projects

Embed Size (px)

DESCRIPTION

Debugging VBScript in InduSoft Web Studio Projects

Citation preview

Page 1: Debugging VBScript in InduSoft Web Studio Projects

VBScript Debugging in InduSoft Web

Studio

Page 2: Debugging VBScript in InduSoft Web Studio Projects

InduSoft (Eng. Andre Bastos)

Company Overview

VB Script on InduSoft Web Studio

Debugging Tools

Debugging Features for VBScript on

IWS

Q & A

Page 3: Debugging VBScript in InduSoft Web Studio Projects

Company Overview

Page 4: Debugging VBScript in InduSoft Web Studio Projects

Established in US in 1997Since Sep, 2013: an Invensys Company!

Pioneer in industry: First HMI/SCADA package for Microsoft Windows CEWeb solution and XML integration in HMI/SCADAPatent for database connectivityMulti-touch support and HTML5 integration

Certifications:

Corporate profile

Page 5: Debugging VBScript in InduSoft Web Studio Projects

Awards

Page 6: Debugging VBScript in InduSoft Web Studio Projects

VBScript on InduSoft Web

Studio

Page 7: Debugging VBScript in InduSoft Web Studio Projects

VBScript on InduSoft Web Studio

Brief Intro

Why VBScript?:

It is a quite well known high-level programming language

Simple, Flexible and Standard

Runs on Windows Embedded OS and Internet Explorer

It is similar to VBA, which is also used on other MS Applications such as the

MS-Office suite

Which IWS interfaces support VBScript?:

Script Task, Global Procedures, Startup Script, Screen Script, Graphics Script,

Command animation property, ActiveX and .Net controls Methods

Support to Built-in IWS functions and tags on VBScript Environment

Page 8: Debugging VBScript in InduSoft Web Studio Projects

VBScript on InduSoft Web Studio

VBScript Cool Features!:

Use of Variables on the Script!

Save on tag count!!!

Intellisense: auto-complete

(less typing, more doing)

Create your own Functions and

Sub-routines

Find on the Internet scripts with

examples on how to do things that

you are not sure how to do!

http://www.w3schools.com/vbscript/

Page 9: Debugging VBScript in InduSoft Web Studio Projects

Debugging Tools on

InduSoft Web Studio

Page 10: Debugging VBScript in InduSoft Web Studio Projects

Debugging on InduSoft Web Studio

Database Spy: It works to debug project running on the local machine or in remote ones Used to see and load values into tags It can also execute Built-in Functions or call VBScript procedures

Sub-routines NEW!!! Support to seeing VBScript variables values and functions status

Page 11: Debugging VBScript in InduSoft Web Studio Projects

Debugging on InduSoft Web Studio

Output Window / LogWin: Helps to debug almost all IWS tasks, such as Comm Drivers, OPC

messages, Database transactions, Screens load time, Log tag changes, and so forth

Like the DBSpy, it works for both Local and Remote projects TRACE messages has been the biggest friend on debugging scripts until

now It can save Log Files

Page 12: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScript on InduSoft Web

Studio

Page 13: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScript

What can be debugged?

Global Procedures

Graphics Script

Scripts from the Script task and Startup Script

Screen Script and Graphics Script

What is not supported yet?

Command Properties on screen objects

ActiveX and .Net Controls Methods

Page 14: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScript

The new DEBUG tab

It only appears when a supported VBScript interface is open

Allows the user to select between Debugging the Viewer module or the

Background tasks

It is where the user controls the debug execution by starting, stopping, going to

the break points, Stepping Into a function, Over and Out as well.

Page 15: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScript

Break Points Used to identify important sections

that you want to focus your debugging

process

Temporarily suspends the script

execution on that point

During that break time, the user can

check variable values, execution states,

and be prepared for the next steps

Page 16: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScript

Stepping through Once the execution in in Break mode, the

user can:

Step Into: advances a single step forward

Step Over: advances a step on the main

Script, not stepping into function calls

Step Out: if the main script called a

function and is debugging there, this

command will finish the execution and

return to the main script

Page 17: Debugging VBScript in InduSoft Web Studio Projects

Debugging VBScriptDatabase Spy

Once the execution in in Break mode, the Database Spy can help the user see:

Locals: Local Variables values

Stack Frame: Shows which VBScript interfaces are currently under Debug

mode

Tasks Frame: shows the Runtime tasks states during the Break

Page 18: Debugging VBScript in InduSoft Web Studio Projects

Live Demo

Page 19: Debugging VBScript in InduSoft Web Studio Projects

Q & A

Page 20: Debugging VBScript in InduSoft Web Studio Projects

Email(US) [email protected](Brazil) [email protected](Germany) [email protected]

Support [email protected] site

(English) www.indusoft.com(Portuguese) www.indusoft.com.br(German) www.indusoft.com.de

Phone +1(512) 349-0334 (US) +55-11-3293-9139 (Brazil) +49 (0) 6227-732510 (Germany)

Toll-Free 877-INDUSOFT (877-463-8763) Fax +1(512) 349-0375

Contact InduSoft Today

Germany

USA

Brazil

Page 21: Debugging VBScript in InduSoft Web Studio Projects

Thank you