You did not read the message you replied to, in which i mentioned firebug.
My script uses firebug if it can find it. If not (i.e. if you're debugging in IE), it creates its own console.
New version..
Allows error reporting now
example:
javascript code:
Â
function myfun (){
try {
// cause an error here
}catch(e){
trace.error(e);
}
}
Also it can be enabled from the query string using ?trace.
If you want to filter what is shown, you can use ?trace=log|error and remove the one you dont want.