简体   繁体   English

为什么在Visual Studio 2017中调试Cordova应用程序时DOM Explorer总是为空?

[英]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. 我们有一个Cordova(实际上是Ionic 3)应用程序,该应用程序几乎可以在Windows Phone上完美运行,但是无法使用Visual Studio 2017进行调试。到目前为止,我们已经能够使用其他调试方法,但是它变得非常繁琐。

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." DOM Explorer和Javascript控制台窗口均出现,但均保持为空,并且在控制台中执行任何Javascript时,窗口均显示“您当前未连接到受支持的页面或应用程序”。

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. 这似乎不是特定于应用程序的-即使我们在Visual Studio中创建一个空白的Cordova应用程序并尝试对其进行调试,也会发生同样的事情。

Also doesn't make any difference whether we're debugging a real device or the emulator. 无论是调试真实设备还是仿真器,也没有任何区别。

应用程序运行时DOM Explorer和Javascript控制台的显示方式

当前的Visual Studio版本

Will literally accept just about any suggestions at this point - feels like we've tried everything. 在这一点上将几乎接受任何建议-就像我们已经尝试了一切。

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. 从来没有深入了解过,但我确实发现DOM调试器可以在Visual Studio 2015中按预期工作,因此我一直在使用它。 Bit of a nuisance but better then nothing! 有点麻烦,但没有什么更好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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