Tclpro™ User's Guide
Total Page:16
File Type:pdf, Size:1020Kb
TclPro™ User’s Guide • • • • • • Scriptics Corporation Version 1.2 • • • • i • • COPYRIGHT Copyright © 1998, 1999 Scriptics Corporation. All rights reserved. Information in this document is subject to change without notice. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or be any means electronic or mechanical, including but not limited to photocopying and recorded for any purpose other than the purchaser’s personal use, without the express written permission of the Scriptics Corporation. Scriptics Corporation 2593 Coast Avenue Second Floor Mountain View, CA 94043 U.S.A http://www.scriptics.com TRADEMARKS TclPro and Scriptics are trademarks of the Scriptics Corporation. Other products and company names not owned by the Scriptics Corporation that appear in this manual may be trademarks of their respective owners. ACKNOWLEDGEMENTS Michael McLennan is the primary developer of [incr Tcl] and [incr Tk]. Jim Ingham and Lee Bernhard handled the Macintosh and Windows ports of [incr Tcl] and [incr Tk]. Mark Ulferts is the primary developer of [incr Widgets], with other contributions from Sue Yockey, John Sigler, Bill Scott, Alfredo Jahn, Bret Schuhmacher, Tako Schotanus, and Kris Raney. Mark Diekhans and Karl Lehenbauer are the primary developers of Extended Tcl (TclX). Don Libes is the primary developer of Expect. TclPro Wrapper incorporates compression code from the Info-ZIP group. There are no extra charges or costs in TclPro due to the use of this code, and the original compression sources are freely available from http://www.cdrom.com/pub/infozip or ftp://ftp.cdrom.com/pub/infozip. NOTE: TclPro is packaged on this CD using Info-ZIP’s compression utility. The installation program uses UnZip to read zip files from the CD. Info-ZIP’s software (Zip, UnZip, and related utilities) is free and can be obtained as source code or executables from Internet WWW sites including http://www.cdrom.com/pub/infozip. • • • ii • • • Contents • • • • • • Chapter 1 Introduction to TclPro . 1 Installing TclPro . 2 Installing TclPro from CD . 2 Installing TclPro from the Web . 2 Installing Adobe Acrobat Reader . 2 Entering TclPro License Information . 3 About the TclPro Documentation . 4 For More Information . 4 TclPro Technical Support. 5 Finding Information about Tcl/Tk on the Web. 5 Tcl/Tk Training. 5 Related Documentation . 5 Chapter 2 TclPro Interpreters and Extensions . 7 TclPro Interpreters . 7 Running the TclPro Interpreters on Unix . 7 Running the TclPro Interpreters on Windows . 8 Extensions Bundled with TclPro. 8 [incr Tcl] . 8 Expect . 9 Extended Tcl (TclX). 9 Chapter 3 TclPro Debugger. 11 Overview of TclPro Debugger . 11 Supported Tcl Versions . 11 Starting TclPro Debugger. 12 The TclPro Debugger Main Window . 12 The Tool Bar . 14 • • • • iii • • The Stack Display. 14 The Variable Display . 15 The Code Display . 16 The Result Display . 17 Managing Projects. 17 Creating a New Project . 17 Opening an Existing Project . 19 Saving a Project . 20 Closing a Project . 20 Changing Project Settings. 20 Changing Project Application Settings. 20 Changing Project Instrumentation Settings . 23 Changing Project Error Settings . 25 Setting Default Project Settings . 26 Opening a File . 28 Controlling your Application . 28 Running Code with TclPro Debugger. 28 Run to Cursor . 29 Stepping through Code . 29 Stepping In . 29 Stepping Out . 30 Stepping Over . 31 Stepping to Result. 31 Interrupting the Application . 32 Killing the Application . 32 Restarting the Application . 32 Quitting TclPro Debugger. 32 Using Breakpoints . 33 Line-based breakpoints . 33 Variable Breakpoints. 33 Manipulating Breakpoints. 33 Viewing Breakpoints in the Breakpoints Window . 34 Navigating Code . 36 Going to a Specified Line . 36 Using the Find Utility . 36 Finding Procedures . 37 Using the Window Menu . 38 Displaying Code and Data. 38 • • • iv • • • Watching Variables . 38 Displaying Data . 40 Manipulating Data. 41 Error handling . 42 Parsing Error Handling. 42 Runtime Error Handling . 43 Setting Preferences . 44 Appearance Preferences . 45 Window Preferences. 46 Startup and Exit Preferences. 47 Browser Preferences . 48 About TclPro Instrumentation . 49 Debugging Remote, Embedded, and CGI Applications . 50 Modifying a Tcl Script for Remote Debugging . 50 Remote Debugging Procedures . 50 Creating a “Wrapper” Script for Remote Debugging . 51 Modifying an Existing Script for Remote Debugging . ..