JS - debug console log logger error, warn, info, log, debug


/ Published in: JavaScript
Save to your folder(s)

// create a variable to toggle debugging
// to use it, just call debug(with,any,optional,parameters)
debug(x,y,z);
// it will try to guess what type of message to log, or you can specify in the first parameter
debug("error",x,y,z);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.