Question

I want to clear the Firebug console of the JavaScript already sent.

Does something like console.clear() exist and work?

Was it helpful?

Solution

console.clear();

works for me

OTHER TIPS

If you want to see all the available methods under console:

for(var i in console) {
    console.log(i);
}

Just a call to the clear function from the console works. However, I can't seem to clear the console from javascript code, but that seems to make sense (you will lose information).

So in Chrome's console, just type:

clear();

You can type clear(); in the Firebug command line. I don't think there's a way to do it from a web page though.

_FirebugCommandLine.clear();

Will clear the console

console.clear() is part of the Firebug API. I fixed the documentation page: http://getfirebug.com/wiki/index.php/Console_API#console.clear.28.29

jjb

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top