LNS Home
Script Debugger
Download & Buy
x Explore
x Edit
x Run & Debug
x Deploy
What's New In 4.5
bullet Documentation
bullet Blog Posts
My SD Story
Software Updates
 
4.0.9 Update
3.0.9 Update
bullet 2.0.5 Update
x Free Downloads
 
XML Tools
XSLT Tools
x Property List Tools
x List & Record Tools
Register Your Copy of Script Debugger
Join the Script Debugger Mailing List
x AppleScript/ Scripting Links
Products
x Script Debugger 4.5
Site Contents
bullet Mark’s Blog
Product Registration
Bug Reporting
x Freeware
Contacting Us

SD4 Headling


image

Leaks

image

If an uncaught runtime error occurs, or you interrupt execution, when your script still has certain links to the outside world in an open state, Script Debugger helps out by giving you the chance to close them. There are two primary situations:

  • Your script has left a file open (using the open for access command).

  • Your script is in the middle of a transaction (talking to FileMaker Pro, the only application that implements transactions) and has left the transaction open.

In a case like this, Script Debugger will show its Leaks dialog.

image

In the above illustration, the dialog shows a list of files that have been left open (there happens to be just one). Typically, you should click the Close All button. This closes all open files.

Alternatively, you could select a file and click the Forget button. This means to leave the file open (basically you’re telling Script Debugger not to help out here), but that isn’t something you’re likely to want to do, since the leak then remains.

In the case of a transaction, you can close the transaction to “commit” it, or click Abort to “roll back” the transaction.

The Leaks dialog can be summoned any time open resources exist, by choosing Script > Show Leaks. (You can also add a Leaks button to the script window’s toolbar.)



Explore | Edit | Run & Debug | Deploy | What's New In 4.5 | My SD Story


Copyright © 1998-2009 Late Night Software Ltd. - All Rights Reserved.