Search code examples
cordovadebuggingvisual-studio-2017windows-10-mobile

Why is the DOM Explorer always empty when debugging a Cordova App in Visual Studio 2017?


I've been struggling with this one for months (on and off) and getting nowhere. We have a Cordova (actually Ionic 3) app that runs almost perfectly on Windows Phone however can't be debugged with Visual Studio 2017. Up until now we've been able to use other methods of debugging but it's getting extremely tedious.

The DOM Explorer and Javascript Console windows both appear however both remain empty and when execute any Javascript in the console it displays "You are not currently attached to a supported page or app."

This doesn't appear to be app specific - the same thing happens even if we create a blank Cordova app in Visual Studio and try to debug that.

Also doesn't make any difference whether we're debugging a real device or the emulator.

How the DOM Explorer and Javascript console appear while app is running

Current Visual Studio Version

Will literally accept just about any suggestions at this point - feels like we've tried everything.


Solution

  • Never got to the bottom of this but I did discover that the DOM debugger works as expected with Visual Studio 2015 so I've been using that instead. Bit of a nuisance but better then nothing!