On May 10, 11:12 pm, Simon Lindholm <[email protected]>
wrote:
> So, for functions with .length === 0, a right-click option "watch return
> value" would be good?
I'd just like a button near the function to get the return value of
the function, but if nothing returned, display 'undefined'.
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)
- the return value from function button will loop through all the
module2 function to display all the return values in the scope (and
doesn't display data when no value is returned from the function)

> 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.
Thank you.
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 ! But seems promising if it is made to give me what I am
trying to achieve.

-- 
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

Reply via email to