forked from debug-js/debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.html
More file actions
26 lines (22 loc) · 533 Bytes
/
browser.html
File metadata and controls
26 lines (22 loc) · 533 Bytes
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>