Clear Debug Console on refresh
I would like the Debug Console to be cleared at each refresh, similar to how Google Chrome clears the console by default when you refresh. Is there a way to do this?
Not currently. In Chrome devtools, there is a way to disable this on the fly, and I wouldn't want to add this without a button to disable it. It's not likely that vscode would add a button for this. How about writing a message to the debug console when the page is refreshed?
+1 on having clear console on refresh be a default option.
Here is a temporary work-around that I've added to my code (requires jQuery):
$(window).on("unload", () => {
console.clear();
});
see https://stackoverflow.com/questions/9308336/execute-function-before-refresh for other options
When I am debugging in VS code for my angular app, I use console.clear()
When I am debugging in VS code for my angular app, I use
console.clear()
simple and easy to use ...tq