I'm currently trying to create a macro to help me debug an annoying JavaScript issue. There's a function that's getting called and it's throwing an exception. I've tried stepping through to find out what code is calling this function (because it shouldn't be called) but the third-party controls we're using and jQuery are creating a mountain of dynamic code that's pretty much impossible to get through. I spent a good hour of pressing F11 before accidentally hitting F10 and having it kick me out to the exception.
To get through this, I wanted to create a macro that would step through the code for me and record the text that gets highlighted yellow in the window. I've tried setting various breakpoints in VS and using Firebug, but I can't seem to find out where/why this function is getting called. Is there a way to capture the code waiting to be executed from a macro?