Created
April 3, 2014 01:55
-
-
Save bitfidget/9946961 to your computer and use it in GitHub Desktop.
a simple way of calling the debugger in JS regardless of scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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