debug/example/browser.html
Nathan Rajlich 4c8e3d3e5e example: remove console.info() log usage
Annoying since the Web Inspector will add an exclamation point
with a blue circle around it to any debug() calls when `info()`
is used.
2014-07-15 15:42:11 -07:00

27 lines
533 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>debug()</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="../dist/debug.js"></script>
<script>
// type debug.enable('*') in
// the console and refresh :)
var a = debug('worker:a');
var b = debug('worker:b');
setInterval(function(){
a('doing some work');
}, 1000);
setInterval(function(){
b('doing some work');
}, 1200);
</script>
</head>
<body>
</body>
</html>