Is there any way to set a breakpoint so that when a property
changes, e.g., a boolean, one can identify WHERE that change
took place?

If the property is in your code (as opposed to the RB runtime), the
answer is yes.

Instead of allowing access to the property directly, make it private
and shield it from the outside world by allowing access via a pair of
methods, one to set the value and one to get it. Use the "Assigns"
keyword for the setter method. Name these methods the same as your
property is now named, and change the name of the now-private
property. (Then you won't have to change any other code.

Your setter method can then do stuff like this:

 Sub MyProperty(assigns newValue as boolean)

   MyPrivateProperty = newValue

   if MyPrivateProperty = SomeParticularValueThatYouCareAbout then
     break // the smoking gun!
   end if

 End Sub

and you can look at the call stack to see what resulted in this value change.

lj
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to