Brief Intro
Why VBScript?:
It is a quite well known high-level programming language
Simple, Flexible and Standard
Runs...
VBScript Cool Features!:
Use of Variables on the Script!
Save on tag count!!!

Intellisense: auto-complete
(less typing...
Studio Manager.exe
DDE Server

OPC Client
OPC Server

DDE Client
Driver
Runtime

Tags
Database

Database
Client Runtime

O...
Library

Execution

Interface

Scope and Lifetime of
variables and
procedures

Variables
Global Procedures

Procedures

BG...
Database Spy:
 It works to debug project running on the local machine or in remote
ones
 Used to see and load values in...
Output Window / LogWin:
 Helps to debug almost all IWS tasks, such as Comm Drivers, OPC
messages, Database transactions,...
Built-in $Trace() function

Output Window messages

VBScript MsgBox function

Error Handling with On Error Resume Next / O...
What can be debugged?
 Global Procedures
 Graphics Script
 Scripts from the Script task and Startup Script
 Screen Sc...
The new DEBUG tab

 It only appears when a supported VBScript interface is open
 Allows the user to select between Debug...
Break Points
 Used to identify important sections
that you want to focus your debugging
process
 Temporarily suspends th...
Stepping through
 Once the execution in in Break mode, the
user can:
 Step Into: advances a single step
forward
 Step O...
Database Spy
 Once the execution in in Break mode, the Database Spy can help the user see:
 Locals: Local Variables valu...
Email
(US)
(Brazil)
(Germany)
Support
Web site
(English)
(Portuguese)
(German)
Phone

Toll-Free
Fax

info@indusoft.com
inf...
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Depurando VBScript no InduSoft Web Studio
Upcoming SlideShare
Loading in …5
×

Depurando VBScript no InduSoft Web Studio

550 views

Published on

No InduSoft Web Studio v7.1 + SP2, foram introduzidas novas ferramentas para a depuração do VBScript em projetos do InduSoft. As novas ferramentas incluem code-stepping, break-points, e uma lista de váriaveis a serem observadas para aumentar ainda mais a produtividade e precisão quando utilizando VBScript no InduSoft Web Studio. Participe com a InduSoft de uma demonstração dessas ferramentas e aprimore o seu projeto!

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
550
On SlideShare
0
From Embeds
0
Number of Embeds
49
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Depurando VBScript no InduSoft Web Studio

  1. 1. 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
  2. 2. 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/
  3. 3. Studio Manager.exe DDE Server OPC Client OPC Server DDE Client Driver Runtime Tags Database Database Client Runtime ODBC Runtime Background Task TCP/IP Server Viewer.exe Viewer TCP/IP Client Alarms Trends Recipes Reports Math Script Scheduler
  4. 4. Library Execution Interface Scope and Lifetime of variables and procedures Variables Global Procedures Procedures BGTask (Server) Viewer (Local) Yes Yes Yes** Yes** Global Graphic Scripts Yes Yes Yes* Graphic Script *Screen Script *Screen Controls Screen Scripts Yes Yes Yes Screen Script Screen Controls Screen Controls (Command, ActiveX, .NET) Yes Yes Screen Control itself Startup Script Yes Script Groups Yes Yes Yes Startup Script Script Groups Yes Script Group itself * Using the Graphics.<Variable_or_Procedure_name> syntax. ** Global Procedures is a repository (library) of user-defined sub-routines and functions, which can be called from any VBScript interface in the project. It is not an execution module (thread) by itself.
  5. 5. 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
  6. 6. 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
  7. 7. Built-in $Trace() function Output Window messages VBScript MsgBox function Error Handling with On Error Resume Next / On Error Goto 0
  8. 8. 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
  9. 9. 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.
  10. 10. 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
  11. 11. 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
  12. 12. Database 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
  13. 13. Email (US) (Brazil) (Germany) Support Web site (English) (Portuguese) (German) Phone Toll-Free Fax info@indusoft.com info@indusoft.com.br info@indusoft.com.de support@indusoft.com www.indusoft.com www.indusoft.com.br www.indusoft.com.de Brazil +1(512) 349-0334 (US) +55-11-3293-9139 (Brazil) +49 (0) 6227-732510 (Germany) 877-INDUSOFT (877-463-8763) +1(512) 349-0375 USA Germany

×