Created
March 19, 2015 14:43
-
-
Save dwarcher/8b52fa650b1c06a924fc to your computer and use it in GitHub Desktop.
Dead simple way to debug print in HARP.js
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
<script> | |
console.log("--- HARP Debugger --"); | |
console.log(<%- JSON.stringify(inspect) %>); | |
// Just check your console in chrome to see and inspect the variable. | |
</script> |
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
<%- partial("_partials/_debugger", { inspect: somevariable }) %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment