/** * Debug Control - Displays debug information and system messages * Implements the Robustness Principle with Fail Fast mode support */ class DebugControl { constructor() { this.control = Object.create(Control); this.control.config = { icon: '🪲', title: 'Debug', className: 'debug-control', defaultContent: 'Click to view debug information', ariaLabel: 'Debug Control', position: 'w' }; // Bind methods to control this.control.buildContent = () => { const content = this.control.element.querySelector('.control-content'); const messages = window.MarkitectDebugSystem ? window.MarkitectDebugSystem.getMessages() : []; content.innerHTML = `
No debug messages yet
' }