• 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: Test vs. Deploy newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test vs. Deploy newbie question


  • Subject: Re: Test vs. Deploy newbie question
  • From: Jim Skibbie <email@hidden>
  • Date: Sat, 21 Jul 2012 18:30:03 +0000
  • Thread-topic: Test vs. Deploy newbie question

Greg-

In ScriptDebugger, as you step through a script in debug mode you can step into a handler (like on open), but all the variables inside that handler are usually local to that handler, so Script Debugger doesn't display the variable and value in the right hand side like it does when the variables are in the main (on run) handler.

I've done this same thing at times (turn an on open handler into an on run handler) when I'm in deep debug mode in the handler and want to know all the values of the local variables going on inside that handler.

I'm attaching a screen shot here: https://www.dropbox.com/s/lfm8lb7wb4t7lkr/screenshot.png. I don't know if the URL will make it or get scrubbed, so I've but some spaces in it: https: // www.dropbox.com / s / lfm8lb7wb4t7lkr / screenshot.png . On the left is how the variables display in the main run handler. The variables are shown in the lower right and you can also hover over them to get their value in Script Debugger. On the right is the same code, but inside of a handler. You'll notice that when you hover over it, it says the variable is 'not defined' and the list of variables in the lower right does not display the local variables and values from inside the handler.

You could declare a variable as global to get around this, but that could cause you more headaches than its worth if you're just trying to see the values of variables inside a handler while debugging.

I'd be interested to know if others work like this. It could very well be that there is an easier way to do this in Script Debugger, so I'm all ears.

Jim
 _______________________________________________
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: Excel Question
  • Next by Date: Re: Convert UI Element List to Strings?
  • Previous by thread: Re: Test vs. Deploy newbie question
  • Next by thread: Re: Test vs. Deploy newbie question
  • Index(es):
    • Date
    • Thread