5
there is some way to delete all logs from the console and start again, like I inserted several logs there using console.log, but I want to remove all of them at once and start again by inserting others..
I read about console.clear() only nothing happens..
console.log("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
– Franchesco
Good question! I wanted to know a way to clean the entire console after a secret operation (like a login via Ajax), because the confidential data is in the console (not exactly in the log area, but still available) and I don’t know how to clean them... >:(
– mgibsonbr
console.clear()
seems to work Jsfiddle :/– abfurlan
@abfurlan works not... http://jsfiddle.net/p958ra5f/4/
– Vinícius Lara
Here it works, Chrome still displays the message
Console was cleared
, in FF also tested and works. Which browser you are using?– abfurlan
this message appears here too but logs are not deleted.. @abfurlan
– Vinícius Lara
The check is enabled
Preserve log
?– abfurlan
I don’t know, I use Chrome on Mac OS @abfurlan
– Vinícius Lara
Got it, check out this link API console
– abfurlan
also use shortcuts like CTRL+L
– Luan Fagundes