Search code examples
javascriptvisual-studiovisual-studio-2015visual-studio-cordova

How to view Visual Studio 2015 Javascript Console after debugging mode stops?


My Javascript Apache Cordova app builds fine but doesn't behave debugging on the emulator or real device.

I see a bunch of messages rush by in the Visual Studio Javascript Console but the app then immediately crashes and the Javascript Console becomes unavailable.

I've tried setting breakpoints to pause the app which doesn't work.

How can I view these Javascript Console logs after the debugger stops ?

EDIT: this if for Windows Phone (Universal) with plugins for Windows Phone and not debuggable in the browser


Solution

  • this is the only way i've figured ;

    1. Ensure JS console button "Clear on navigate" is not set
    2. Start the app so that the errors appear albeit momentarily
    3. Remove plugins and associated code one by one until your app doesn't crash
    4. View original error messages in the JS console from previous sessions