Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Any easy way to monitor or control properties during run?
Old
Sophie
Guest
 
Status:
Posts: n/a
Default Any easy way to monitor or control properties during run? - 06-04-2009, 02:29 PM

Are there any easy ways to monitor and/or control user-defined properties during a run? e.g. a Slider for numeric properties, or a Text field for String properties? Quite useful for initial development and for debugging.

I did find 3 Visualization classes but cannot figure out what they do (a few lines of explanation text with each class could be quite useful!).
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-04-2009, 04:22 PM

The properties window for an object is updated in real time, so monitoring that should work. You may have to add pauses in your program, however, to actually catch what you want. Everything resets back to the default after a method ends.
   
Reply With Quote
Old
Sophie
Guest
 
Status:
Posts: n/a
Default 06-04-2009, 05:34 PM

Will what allow me to watch obj1.p1 and obj2.p2 at the same time? The main window seems to block while "Play" is in progress so I cannot switch object focus.

Thanks!
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-05-2009, 12:22 PM

Unfortunately, you can only view one object's properties at a time.

You can also print the properties to a file at select times in the program but that's pretty tedious.
   
Reply With Quote
Old
Sophie
Guest
 
Status:
Posts: n/a
Default 06-19-2009, 06:45 PM

Hmm. 2.2 seems to have "Watch this variable", which does exactly what I want. Not sure how I missed that earlier.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 06-20-2009, 09:53 AM

Quote:
Originally Posted by Sophie View Post
Hmm. 2.2 seems to have "Watch this variable", which does exactly what I want.
I hadn't checked that. Probably one good reason to use 2.2, at least for debug - that feature never really worked "right" in 2.0; the results were not always predictable.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.