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
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to