Full callstack for multiple frames JS on IE8
I need to get a full call stack when an exception occurs in JavaScript on Internet Explorer 8. Function calls may occur between frames whose number is large. Call stack necessary to send logs to the developers. I cannot use a debugger, because the end user does not have to deal with this problem. The current solution for JavaScripts provided it can generate callstack ( http://eriwen.com/javascript/js-stack-trace/ ). It is based on arguments.callee.caller. But the caller returns zero ( undefined ) if the function was called from outside the current frame. Thus callstack obtained is incomplete.