Skip to content

Commit bba6a63

Browse files
authored
Update index.html
1 parent a33b332 commit bba6a63

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ <h2>
309309
Blockly JavaScript Builder
310310
</h2>
311311
<div class="right-buttons">
312-
<button onclick="window.open('https://discord.gg/xzPTxqNR', '_blank')">💬 Join Discord</button>
312+
<button onclick="window.open('https://discord.gg/QzajRf5H', '_blank')">💬 Join Discord</button>
313313
<button id="settingsToggle">⚙️ Settings</button>
314314
</div>
315315
</div>
@@ -323,6 +323,7 @@ <h2>
323323
<button onclick="workspace.zoomCenter(-1)">➖ Zoom Out</button>
324324
<button onclick="workspace.zoomToFit()">🧭 Fit</button>
325325
<button onclick="workspace.setScale(1)">🔄 Reset Zoom</button><br><br>
326+
<button id="debugToggle">🐛 Toggle Debug Mode</button>
326327
</div>
327328

328329
<div id="main">
@@ -357,6 +358,10 @@ <h2>
357358
<div id="successMessage"></div>
358359
</div>
359360

361+
<div id="debugPanel">
362+
<strong>🐛 Debug Info:</strong>
363+
<div id="debugMessage"></div>
364+
</div>
360365

361366
<div class="button-group">
362367
<button onclick="runCode()" class="tooltip">
@@ -509,6 +514,10 @@ <h2>
509514
issues.push('Null value detected - consider null checking');
510515
}
511516

517+
// Check for infinite loops
518+
if (code.includes('while (true)') || code.includes('while(true)')) {
519+
issues.push('Potential infinite loop detected');
520+
}
512521

513522
// Check for empty blocks
514523
if (code.trim() === '') {
@@ -1138,7 +1147,9 @@ <h2>
11381147
if (workspace) {
11391148
setTimeout(() => workspace.resize(), 100);
11401149
}
1141-
}};
1150+
});
1151+
1152+
console.log('🎉 Blockly with Enhanced Error Handling initialized successfully!');
11421153
</script>
11431154
</body>
11441155
</html>

0 commit comments

Comments
 (0)