-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug.html
More file actions
75 lines (62 loc) · 1.86 KB
/
Copy pathdebug.html
File metadata and controls
75 lines (62 loc) · 1.86 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Store Debug Test</title>
<style>
body {
font-family: monospace;
padding: 20px;
background: #1a1a1a;
color: #0f0;
}
.log {
margin: 10px 0;
padding: 10px;
background: #000;
border-left: 3px solid #0f0;
}
.error {
border-left-color: #f00;
color: #f00;
}
.success {
border-left-color: #0f0;
color: #0f0;
}
</style>
</head>
<body>
<h1>🔍 Store Page Debug Console</h1>
<div id="logs"></div>
<script type="module">
const logContainer = document.getElementById('logs');
function log(message, type = 'log') {
const div = document.createElement('div');
div.className = `log ${type}`;
div.textContent = `[${new Date().toLocaleTimeString()}] ${message}`;
logContainer.appendChild(div);
console.log(message);
}
// Override console methods
const originalLog = console.log;
const originalError = console.error;
const originalWarn = console.warn;
console.log = (...args) => {
log(args.join(' '), 'log');
originalLog.apply(console, args);
};
console.error = (...args) => {
log(args.join(' '), 'error');
originalError.apply(console, args);
};
console.warn = (...args) => {
log(args.join(' '), 'error');
originalWarn.apply(console, args);
};
log('Debug console initialized', 'success');
log('Navigate to /store to see initialization logs', 'log');
</script>
</body>
</html>