简体   繁体   中英

How to make Visual Studio automatically clear Javascript console?

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.

This may be what you want to use:

console.clear();

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM