Is there a way to determine the stack depth of all functions being executed in javascript by using javascript itself?
I'm thinking it might involve modifying the Function
prototype, but I really don't have any idea.
Additionally, it would be nice to be able to break anytime the stack depth were sufficiently high.
The reason for this is that I have a stack overflow error in IE which is apparently not debuggable. I'm lazy and I would rather not have to hunt through the code that I'm maintaining to find the cause.
Thanks for assisting my laziness.