How to use preventDefaultDebugger.js Add this to your devtools console. var oldEPD = Event.prototype.preventDefault; Event.prototype.preventDefault = function() { debugger; oldEPD.call(this); };