On Jan 8, 10:08 am, Sergio Cinos <[email protected]> wrote: > gn and gs will be visible if you Watch the variable 'window.parent', > as a global variable IS a property of 'window'. Global variables and > 'window' properties are the same thing.
I started my script, and I am at a breakpoint in L (in the onclick handler). I have the Script tab displayed, and in the Watch/New watch expression box I typed window.parent. When I expand window.parent by clicking +, I get a long list of properties, innerHeight, innerWidth, ..., window. When I expand window, I see my global variables. The path is ["window.parent"].window.gn. So it appears I should be entering either window.parent.window (to see all variables), or window.parent.gn, to see a specific variable. I did verify that variables that are global to L can be viewed by entering the variable name into the New watch expression box. So, I have a feature request. First, Watch should display at the top of the list, "Global variables". Expanding this would list all the variables that were global in the current function. Second, if frames are in use, another item at the top should be "Variables in other frames". Expanding that would give a list of frames, and expanding each frame would show its global variables. But before all this, there is another problem: the Watch window doesn't display variables consistently. Sometimes it shows the global variables in window.parent.window, and sometimes not. And sometimes it shows NO variables at all when stopped at a breakpoint in L. -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
