View Full Version : Any easy way to monitor or control properties during run?
Sophie
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!).
DrJim
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.
Sophie
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!
DrJim
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.
Sophie
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.
DrJim
06-20-2009, 09:53 AM
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.