Re: Variables pane of Script Debugger
Re: Variables pane of Script Debugger
- Subject: Re: Variables pane of Script Debugger
- From: Mark Alldritt <email@hidden>
- Date: Thu, 23 Jul 2009 12:18:22 -0700
Hi,
On 23-Jul-09, at 10:03 AM, email@hidden
wrote:
Hello Mark, can you please adjust the code of my simple example to
demonstrate it to me?
Of course I read the help file of Script Debugger, but unfortunately
after trying several things I seem to be unable to get it to work.
I also uncommented --local y, but that makes no difference. I still
only see the value of x in the side pane of Script Debugger.
All you have to do is uncomment the 'local' statement to make the
declaration of y explicit. Here's a video that demonstrates how to
view the local variable in your sample script:
http://www.youtube.com/watch?v=P0jF8262xe0
Cheers
-Mark
On 23 jul 2009, at 16:14, Mark Alldritt wrote:
Hello,
On 23-Jul-09, at 3:32 AM, email@hidden
wrote:
Hello, how can I see the value of y in the variables pane of Script
Debugger when I run this simple examplescript in debug mode:
set x to 3
beeping(x)
on beeping(x)
--local y
set y to 5
beep x
delay 2
beep y
end beeping
Script Debugger requires that local variables be declared explicitly
using AppleScript's 'local' statement in order for them to appear in
the Variables browser and in the Expressions browser. More
information is presented in Script Debugger's online help. Just
search for 'local' to get more information.
Cheers
-Mark
_______________________________________________
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