javascriptloggingconsolecoda

Coda: Automatically Clear JavaScript Console on page reload?


Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?

I often stumble when I see old errors in the log, that doesn't still exist.


Solution

  • Use:

    console.clear();
    

    If you want to erase all the previous logs and to show the fresh ones - put it on top of your JavaScript file.