在VS 2017 xamarin android项目中没有击中断点

问题描述 投票:0回答:1

我正在尝试使用Visual Studio社区2017创建一个跨平台应用程序。我的应用程序在我的物理设备上构建和部署。

我已经对MainActivity类中的oncreate方法进行了更改,并打算调试代码以查看结果,但是我在oncreate方法中设置的断点从未被命中。我试图创建一个新的跨平台项目,它做同样的事情。我在共享的pcl项目中放置了断点,但它们被击中了。

我在网上浏览过并尝试了一切我能找到的东西:

清理解决方案并重建;

删除了bin文件夹;

检查文件夹目录中的命名;

2017年重新安装和更新的visual studio;

似乎没有什么工作。在输出窗口中,我收到此消息“Resolved pending breakpoint at'... \ test \ test.Android \ MainActivity.cs:74,1'to void test.Droid.MainActivity.OnStop()[0x00000]”

请更多建议。

非常感谢。禅

debugging xamarin mono
1个回答
0
投票

阅读后的帖子

Xamarin Live Player does not start OnCreate in Android project, using the VS default project

和来自

How do I debug on a real android device using Xamarin for Visual Studio?

我禁用了Xamarin现场播放器 - >在我的电脑上安装了usb驱动器 - >在我的手机上打开usb调试模式 - >最后我能够逐步完成oncreate方法。

© www.soinside.com 2019 - 2024. All rights reserved.