(function() { 'use strict'; // Store original debugger function if it exists const originalDebugger = window.debugger; // Override debugger function window.debugger = function() { // This will be called frequently to disrupt debugging originalDebugger && originalDebugger(); return function() { debugger; }; }; // Periodically trigger setInterval(function() { try { window.debugger()(); } catch (e) { // Ignore errors } }, 100); // Also override common console methods ['log', 'info', 'error', 'warn'].forEach(function(method) { const original = console[method]; console[method] = function() { // Trigger debugger if console is used try { debugger; } catch (e) {} return original.apply(this, arguments); }; }); })();