Debugging Help

Xavier Bury xavier.bury at googlemail.com
Wed Feb 27 11:08:45 EST 2008


Hi Len

For your first problem, you can watch what is happening using the Message
watcher (in the development menu).

Put a message handler like this into your field's script:

on tabkey
  breakpoint
  pass tabkey -- debug step into here
end tabkey

(note it could another message like keydown or keyup etc that's triggering
the fld clearing, the msg watcher will tell...)

Once in debug mode at the breakpoint, continuing in debugging "into" the
pass tabkey handler should take you to the "other" tabkey script above in
the hierarchy that is clearing your field...

hope that helps...

For the second problem, it's a huge undertaiking that im sure has been done
before... Look around, maybe someone will tell you where to get it...

Cheers
Xavier

On Wed, Feb 27, 2008 at 4:27 PM, Len Morgan <len-morgan at crcom.net> wrote:

> I'm having trouble chasing down a problem: I have a field that is
> getting cleared as soon as you tab out of it.  I can't seem to locate
> where in the message path this is happening.  This SPECIFIC problem is
> mine to solve (punishment for a less than organized development approach).
>
> What I'm wondering is if there is a way to show the path a message would
> take through the message heirarchy.  In other words is there some way I
> could send an exitField (or closeField) message to a specific field and
> then get some sort of listing of the path that message would take?  In
> other words, is there some way to simulate the "traceroute" command used
> in networking to the message path?
>
> The other debugging chore I'd like to have is a stack compare function.
> Would it be difficult to create a function that would take two stack
> names as arguments and then display in two side by side panes the
> differences between them?  Not just scripts but objects, properties,
> etc?  I'm thinking of something like the interface that the
> "BeyondCompare" program (used to compare text files).
>
> Anyway, any suggestions would be appreciated.
>
> len morgan
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the Use-livecode mailing list