@warp-works/warpjs-utils
Version:
Utility functions for WarpJS and plugins
17 lines (15 loc) • 818 B
JavaScript
/* eslint-disable no-console */
module.exports = function debug(value) {
console.log("[DEBUG] ==================================================");
console.log(" == Context (this) ==");
console.log(" == -------------------------------------------- ==");
console.log(" ==", this);
// Ignore the helper's name (as first argument)
if (arguments.length > 1) {
console.log(" == -------------------------------------------- ==");
console.log(" == Values ==");
console.log(" == -------------------------------------------- ==");
console.log(" ==", arguments[1]);
}
console.log("[DEBUG] ==================================================");
};