mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
Annoying since the Web Inspector will add an exclamation point with a blue circle around it to any debug() calls when `info()` is used.
27 lines
533 B
HTML
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>
|