Finding where code is executed
Posted: Fri May 27, 2011 1:22 pm
Hello,
I have a specific problem, to which I'd much appreciate a general solution.
What happened is this: I'm working on a stack, and it's (mostly!) going well. I added a group of controls from an open-source stack to my stack, and it works. However, at one point, there was a "visual effect push right" which I changed to "visual effect push left". Fine, it pushes the way I want it to... but too slowly for my tastes. I'd like to make it "visual effect push left fast".
And... I can't find that code again. Anywhere! I've checked the button itself in the group, the group the button is a member of, the group that group is a member of, my card, my stack... The "push left" still happens, so it must be somewhere, right? In fact, I'm sure it does; I thought maybe I'd removed it and it was somehow kept as some kind of default; but when I added another "push left" to the "on mouseUp" where the behavior happens, I got two pushes! Entertaining
but not what I want.
So that's the specific problem.
In general, I'd like to be able to figure out what's going on with my code. Well, for *my* code, this shouldn't be a problem (sure
), but for code added from somewhere else (ENORMOUS THANKS TO ALL GENEROUS CONTRIBUTORS, of course!) it can be kind of confusing.
For the record, I have done a bit of research into the whole Message Hierarchy, and downloaded the fantastic stack that goes over it, and includes the GetMessagePath() function (which I tried, it didn't find anything new).
I feel a bit like I did with my early days of Object-Oriented programming... mysterious code is executed (due to inheritance, say, in OO land) and I can't find it or track it down.
SO: Specific questions.
Is there a way to debug the *WHOLE* message trace, from beginning to end? (Hmmmm, I'll have to try adding a FrontScript and debug from there...)
Is there a way to dump the script text of everything in a stack, so I can use ordinary text editors, etc., on it?
Any better ideas?
Thanks!
I have a specific problem, to which I'd much appreciate a general solution.
What happened is this: I'm working on a stack, and it's (mostly!) going well. I added a group of controls from an open-source stack to my stack, and it works. However, at one point, there was a "visual effect push right" which I changed to "visual effect push left". Fine, it pushes the way I want it to... but too slowly for my tastes. I'd like to make it "visual effect push left fast".
And... I can't find that code again. Anywhere! I've checked the button itself in the group, the group the button is a member of, the group that group is a member of, my card, my stack... The "push left" still happens, so it must be somewhere, right? In fact, I'm sure it does; I thought maybe I'd removed it and it was somehow kept as some kind of default; but when I added another "push left" to the "on mouseUp" where the behavior happens, I got two pushes! Entertaining

So that's the specific problem.
In general, I'd like to be able to figure out what's going on with my code. Well, for *my* code, this shouldn't be a problem (sure

For the record, I have done a bit of research into the whole Message Hierarchy, and downloaded the fantastic stack that goes over it, and includes the GetMessagePath() function (which I tried, it didn't find anything new).
I feel a bit like I did with my early days of Object-Oriented programming... mysterious code is executed (due to inheritance, say, in OO land) and I can't find it or track it down.
SO: Specific questions.
Is there a way to debug the *WHOLE* message trace, from beginning to end? (Hmmmm, I'll have to try adding a FrontScript and debug from there...)
Is there a way to dump the script text of everything in a stack, so I can use ordinary text editors, etc., on it?
Any better ideas?
Thanks!