Skip to content

Instantly share code, notes, and snippets.

@bitfidget
Created April 3, 2014 01:55
Show Gist options
  • Save bitfidget/9946961 to your computer and use it in GitHub Desktop.
Save bitfidget/9946961 to your computer and use it in GitHub Desktop.
a simple way of calling the debugger in JS regardless of scope
adding this to your javasript will allow you to initiate the debugger on demand, no matter where you arein your code by entering into the console window.ohNo
var window.ohNo = function(){
debugger;
};
genius!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment