I'm trying to write JavaScript code which monitors and logs the stack trace continuously.
I know there’s the console.trace()
which can be used to print the stack trace to the console, but what I need is printing the stack trace for every function call in real time. That is, logging all the flows in the site.
In other words what I'm trying to implement is a script that when injected into the DOM will write all the stack trace to the console.
No FireBug, no breakpoints, no manually adding console.trace()
into each function.