debug run-time created function
I need to create a function from a given string.
Is there any way to debug a run-time created function in browser?
var strFunction = " return 'hello'; ";
//here I get an anonymous function can I give a name to it?
var fn = new Function(strFunction);
//browser debugger wont step into the function body, can I do that somehow?
var result = fn();
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread