browser.html 436 B

123456789101112131415161718192021222324
  1. <html>
  2. <head>
  3. <title>debug()</title>
  4. <script src="../debug.js"></script>
  5. <script>
  6. // type debug.enable('*') in
  7. // the console and refresh :)
  8. a = debug('worker:a');
  9. b = debug('worker:b');
  10. setInterval(function(){
  11. a('doing some work');
  12. }, 1000);
  13. setInterval(function(){
  14. a('doing some work');
  15. }, 1200);
  16. </script>
  17. </head>
  18. <body>
  19. </body>
  20. </html>