Beyond the top of my head, and driven by @MrLeap's idea of ββsending messages to the console , how about creating a Pending adapter for your own design.
for example (embryonic and unverified):
var debugMode = true; function DeferredAdapter(name) { var dfrd = $.Deferred(); if(debugMode) { dfrd.notify = function() { console.log(name + ': notify'); if (arguments[0] && typeof arguments[0] == "string") console.log(arguments[0]); };
That way (when you have it working), you can do unnecessary things when debugging, with a simple mechanism to turn off unnecessary material in the production code without having to go through the entire console.log() cleansing statement.
Beetroot-beetroot
source share