Visual Studio无法调试Android Xamarin应用 [英] Visual studio can't debug Android Xamarin app

查看:216
本文介绍了Visual Studio无法调试Android Xamarin应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用Xamarin和Android使用Visual Studio 2013.

I've started with Xamarin and Android using Visual Studio 2013.

当我开始调试android应用时,它会生成,部署到设备上,然后在Visual Studio中停止调试.我无法达到任何断点.应用程序正在设备中运行,但是我无法对其进行调试. 我想念什么吗? 我尝试了各种仿真器和物理android设备,但是调试在其中任何一个中均不起作用.就像我已经停止了一样.

When I start debugging the android app, it builds, deploys to device and then debugging in Visual Studio stops. I can't hit any breakpoint. App is working in device, but I cannot debug it. Am I missing something? I've tried various emulators and a physical android device but debugging doesn't work in any of them. It just act like I have stopped it.

在Xamarin Studio中调试相同的解决方案是可行的,但我只是无法在Visual Studio中运行它.

Debugging the same solution in Xamarin Studio works, I just can't get it working in Visual Studio.

推荐答案

确保您正在调试"模式(目标)上运行.

Make sure you are running on Debug mode (on target).

然后,检查App Project的属性,看看它是否使用Xamarin调试器而不是VisualStudio调试器.

Then, check the Properties of the App Project and see if it's using the Xamarin debugger instead of the VisualStudio Debugger.

这篇关于Visual Studio无法调试Android Xamarin应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆