Created
June 25, 2013 19:40
-
-
Save justinwinslow/5861694 to your computer and use it in GitHub Desktop.
Dev Tools Magic Sauce
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
//Log events fired on given DOM element | |
monitorEvents(elem); | |
unmonitorEvents(elem); | |
//See a trace of how we reached this line. | |
console.trace(); | |
//Performance timing | |
console.time('Timer'); | |
console.timeEnd('Timer'); | |
//Different types of logging | |
console.log('Captain\'s Log 1', new Date()); | |
console.info('Ammo supplies moderate'); | |
console.debug('Shield\'s are up'); | |
console.warn('Unidentified craft appearing'); | |
console.error('Fire in the cargo bay'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment