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();