• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Variables pane of Script Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Remove icon from dock after adding it
  • Next by Date: Simulate click on a button in a flash object
  • Previous by thread: Re: Variables pane of Script Debugger
  • Next by thread: Re: Variables pane of Script Debugger
  • Index(es):
    • Date
    • Thread