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. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
