create debug for inspect element
create debug for inspect element
by Adi Jaya
HTML
<h2>Inspect this page</h2>
JavaScript
//create debug
(function() {
(function a() {
try {
(function b(i) {
if (('' + (i / i)).length !== 1 || i % 20 === 0) {
(function() {}).constructor('debugger')();
} else {
debugger;
}
b(++i);
})(0);
} catch (e) {
setTimeout(a, 5000);
}
})();
})();