File: browser.html

package info (click to toggle)
node-debug 2.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 212 kB
  • ctags: 51
  • sloc: makefile: 31; sh: 3
file content (26 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!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>