Created
January 10, 2014 04:02
-
-
Save joprice/8346814 to your computer and use it in GitHub Desktop.
Log to console when developing chrome devtools extension.
This file contains hidden or 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
function debug() { | |
var args = Array.prototype.slice.call(arguments).join(",") | |
var script = ["console.log(", args, ")"].join('') | |
chrome.devtools.inspectedWindow.eval(script); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment