Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Variables pane of Script Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variables pane of Script Debugger



Title: Re: Variables pane of Script Debugger
Script debugger only display variables defined at top level (outside of handlers) so if you have no other variables with the name "y" in your script you can add the following line at the beginning of your script:

global y

other alternatives you can use for debugging purposes are adding "log y" inside of your handler and then look at the event log, or if it is a string or number add "say y", which you probably don't want in your script other than for debugging :-)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Variables pane of Script Debugger (From: Bert Groeneveld <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.