Work through some event routing right now and there are many debugging steps.
I know about using a "debugger" in javascript and put it after the conditional, and this is useful. I also know that I need to click the breakpoint to add a test expression that is even better. However ... I have no idea where this will take me, and I'm starting to wear out my function keys. Is there any way to add a breakpoint to the clock expression?
Basically the idea is that in the shell area, I want to check a variable called this.id. If this.id is the value I want, I enter the debugger.
Any ideas?
thanks
I would like to add that Didier's answer below solved my problem, as they are described in the article to decorate "Function". This will most likely be the path of least resistance to find all the functions for the value I want.
Function.prototype.debug = function(){ var fn = this; return function(){ if (debugme) debugger; return fn.apply(this, arguments); }; };
Shane source share