0

I am using Microsoft Visual Studio to build a mobile app using Cordova. The JavaScript console logs in VS are somehow persistent over different debugging sessions, which often causes confusion to myself. How do I make it automatically clear VS console logs every time I build?

I am using Visual Studio 2015.

2
  • The browser console logging is persisting? Commented May 11, 2016 at 19:02
  • @IrkenInvader Not the browser console. I meant the Visual Studio's JavaScript console. I updated the question to clarify this.
    – Xin
    Commented May 11, 2016 at 19:11

1 Answer 1

1

This may be what you want to use:

console.clear();

https://msdn.microsoft.com/en-us/library/hh696634.aspx

1
  • If something is logged before the app is initialized you won't have the time to clear the console before loading. Is there a setting to clear it once you stop the build?
    – EHorodyski
    Commented Sep 29, 2016 at 13:13

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.