User:PanSola/DebugTools.js

/* */ /* var DEBUGMSG = '';

function debuggerInit { if (!DEBUGMODE) return;

var debugDiv = document.createElement("div"); debugDiv.id = 'debugDiv'; document.body.appendChild(debugDiv); debugDiv.style.background='yellow'; debugDiv.style.clear='both';

var debugHead = document.createElement("div"); debugHead.id = 'debugHead'; debugHead.innerHTML = 'Debug buffer header'; debugDiv.appendChild(debugHead); var debugBody = document.createElement("div"); debugBody.id = 'debugBody'; debugDiv.appendChild(debugBody); } addOnloadHook(debuggerInit);

function qDebugMsgLn(message){ DEBUGMSG += message + ' '; }

function printDebugMsg{ document.getElementById('debugBody').innerHTML += DEBUGMSG; DEBUGMSG = ''; }

/* */