On Jan 8, 11:57 am, Woody <[email protected]> wrote: > 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
The global scope is already shown at the bottom of the Watch panel. > 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. The global variables for other frames are already available via 1) window.parent expansion in the Watch panel as above. 2) |window.parent| expression in the Watch panel as above. 2) Command line with cd/dir 3) DOM panel via window.frames > > 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. I guess you are running Firebug 1.6.0 on Firefox 3.6. Update to 1.6.1 and if you still have a problem report it to our bug tracker. jjb -- 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.
