Ahmed, the function body may be too long to quickly identify the function, it may require to decompile the function and it will not be easily available as class field that you can inspect in your IDE.
Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Ahmed Ashour wrote: > Hi Marc, > > > What about printing the function body instead? > > Ahmed > > ----- Original Message ---- > From: Marc Guillemot <[EMAIL PROTECTED]> > To: [email protected] > Sent: Friday, October 17, 2008 3:46:39 PM > Subject: "birth name" of anonymous functions for easier debugging? > > Hi, > > it is quite common to write JavaScript code like this: > > var foo = function() { ... } > > and then to call foo or pass it as parameter to other functions. The > drawback while debugging is that the function here is an anonymous > function and it is therefore difficult to identify it. > > What about saving information about the "birth name" of the function to > make debugging easier? This would be the name of the variable to which > the function was initially assigned. > > Cheers, > Marc. _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
