Let's say I have a web site with some JavaScript.
While I'm using/navigating around the site, I'd like all the JavaScript functions that execute to have their names logged to the console.
In other words, if I, for example, have a function named refreshGrid
that executes when I click on a button, I want to see refreshGrid()
appear in the console, live.
Don't get caught up on this example though--I'm looking for a way to log every single function that executes, when it executes, like you see in the the Firebug or Chrome profilers—but live, in real-time.
I found a great(?) suggestion (http://stackoverflow.com/questions/4921966/live-javascript-debugging-by-recording-function-calls-and-parameters) here on SO, but there's no example.