简体   繁体   English

为什么在尝试调试Cordova应用程序时Visual Studio 2015会丢失调试附加

[英]Why Visual Studio 2015 loses debugging attach when try to debug Cordova application

I've just created a blank cordova application in Visual Studio Entreprise 2015. It compiles and deploys correctly to the device, but it does not holds the attach. 我刚刚在Visual Studio Entreprise 2015中创建了一个空白的cordova应用程序。它可以编译并正确部署到设备,但不包含附件。 It loses the attach immediatly as the debug begins. 在调试开始时,它会立即失去连接。 It breaks the attach right before Visual Studio prints a warning message (not error) stating that: "An error ocurred trying to attach to the Google Android Emulator. Exception: invalid pointer". 它会在Visual Studio打印警告消息(不是错误)之前中断附加权,该警告信息指出:“尝试附加到Google Android仿真器时发生错误。例外:无效的指针”。

Everything seems ok. 一切似乎还好。 I also tested an Android basic project in the Android Studio. 我还在Android Studio中测试了一个Android基本项目。 Debugged sucesfully. 成功调试。

I could even debug a basic Cordova project using Visual Studio Code and it worked perfectly. 我什至可以使用Visual Studio Code调试基本的Cordova项目,并且效果很好。

I don't know what I can try next to solve this problem. 我不知道接下来我可以尝试解决什么问题。

Visual Studio Entreprise is installed in the system drive, as jdk. Visual Studio Entreprise以jdk的形式安装在系统驱动器中。 Apache Ant and Android SDK are in other system drive. Apache Ant和Android SDK在其他系统驱动器中。 Those are the only things that are out of the usual. 这些是与众不同的唯一事情。 Also, I've instaled the Xamarin tools on Visual Studio. 另外,我已经在Visual Studio上安装了Xamarin工具。

I've just formated the computer a few days ago. 我几天前刚刚格式化了计算机。 Using the Windows 10 Pro, and never faced such problem before. 使用Windows 10 Pro,以前从未遇到过此类问题。

What can be hapenning? 可以进行什么训练?

我建议您以管理员身份运行VS,有时可以解决加载的问题或访问权限问题。

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

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