Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged log
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
// 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);
1
3252
posted 10 years ago by brandonjp
Helps to manage console.log debug in js when broswing in IE. If alertFallback is enabled, you can see js alerts appears of vars tracked.
0
1879
posted 13 years ago by Simounet
Basically creates a log function on the window object and uses console.log or alert depending on which is supported. Very basic and simple but definitely useful.
0
1096
posted 14 years ago by alvincrespo
« Prev 1 Next »