Skip to content

Instantly share code, notes, and snippets.

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