Variable watcher not in the Development Menu

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Variable watcher not in the Development Menu

Post by Ron Zellner » Thu Oct 30, 2008 3:50 pm

I've been using Revolution for a long time, recently converted to 3.0- just went to open the Variable Watcher (very handy feature) and the Variable Watcher is not in the Development Menu. The other features all seem to be there. Nothing in the documentation suggests any conditions necessary for this to display.
How do I get this feature back in the Menu display?

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Maybe asked the wrong question

Post by Ron Zellner » Thu Oct 30, 2008 4:10 pm

OK, I found the "Variables" Tab on the bottom of the Script Editor- has that replaced the Variable Watcher? (Documentation still references the Development MenuBar) I seem to see only Global Variables there- can it display all variables?
What I am currently trying to determine the status of the various attributes of a video player ("MovieScreen") so that I can test it- I have a scrollbar to control the speed that the movie plays at- but I don't want the movie to play when the scrollbar is changed; that currently happens with the script:

Code: Select all

on scrollbarDrag newValue 
  divide newValue by 100
  add .75 to newValue
  put newValue into field "PlaySpeed"
  set the playRate of player "MovieScreen" to newValue  
end scrollbarDrag
If it is playing I want it to continue playing, if it is paused I want it to stay paused.
Last edited by Ron Zellner on Thu Oct 30, 2008 5:38 pm, edited 1 time in total.

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Code solution, still can't display all variables

Post by Ron Zellner » Thu Oct 30, 2008 5:36 pm

This seems to do the trick for the player control, but I still can't display the variable watcher- the Variables tab only shows the globals and does not update like the old Variable Watcher did:

Code: Select all

on scrollbarDrag newValue
   Put the paused of player "MovieScreen" into WhatIs -- Added this
   divide newValue by 100
   add .75 to newValue
   put newValue into field "PlaySpeed"
   set the playRate of player "MovieScreen" to newValue  
   
  if WhatIs = "true" then                      --Added this
      play pause videoClip "MovieScreen"
   else
      play videoClip "MovieScreen"
   end if
   
end scrollbarDrag

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Sat Nov 01, 2008 12:47 am

Ron- That doesn't sound right, and I just tried this to be sure, and local variables are displaying properly for me in the variable watcher.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Nov 01, 2008 1:13 am

Ron and Mark,

It sounds like a bug.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Sat Nov 01, 2008 3:10 am

Well, it should certainly be displaying them. Ron - this is while you're debugging, right? Otherwise there's no context for the local variables...

Post Reply