Den fredagen den 11:e maj 2012 kl. 12:02:36 UTC+2 skrev AlphaPage: > I'd just like a button near the function to get the return value of > the function, but if nothing returned, display 'undefined'. > Where in the UI? (Just draw a picture in Paint or something.) This and the "display all return values" doesn't seem to work with stateful functions, and ones taking >0 arguments. Also, for watches in particular, adding the function as a watch seems to be conceptually wrong in the first place; you really want the return value.
> But an even better tool would display 2 toggle buttons next to the > 'class' ie module2: > - the 'private' or closure scope button will loop through all the > module2.% var to display all the private var in the scope (and hide > undefined var for example) > FireClosure should add one such thing in DOM views (though it's hacky and might be removed later, I dunno), where else should it go? (Again, mspaint'd screenshot.) > FireClosure <https://github.com/simonlindholm/fireclosure> would also > give > > you exactly what's needed here - you could just add a watch for > > "module2.%str". Would you mind trying it out and giving me some > feedback? > > (It's somewhat fragile, and works only with >= Firefox Aurora.) > You learned me something with module2.%str to watch 'private' var. > Wellll.. it's not standard and just a syntax I made up for FireClosure. But I hope that works alright. I tried FireClosure and get a closure scope displayed in the quick > watch panel, but no str var from my breakpoint: maybe I am using it > the wrong way ! Hm, I don't really understand what you're saying. Screenshot of what you expect to appear? -- 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 https://groups.google.com/forum/#!forum/firebug
