Re: Variables pane of Script Debugger
Re: Variables pane of Script Debugger
- Subject: Re: Variables pane of Script Debugger
- From: Matt Neuburg <email@hidden>
- Date: Thu, 23 Jul 2009 10:40:54 -0700
- Thread-topic: Variables pane of Script Debugger
On Thu, 23 Jul 2009 09:45:14 +0200, Bert Groeneveld
<email@hidden> said:
>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
Uncomment "local y", be in debug mode, and set a breakpoint within the
"beeping" handler somewhere after the "set y to 5" line. Now you will see
the value of y in the variables pane when you pause.
You will not see the value of y in the variables pane without the
breakpoint, because y is local, so when you get to the end running the
script, y no longer exists. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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