c# - 断点和异常停止正常工作,xamarin android

标签 c# android visual-studio xamarin invocationtargetexception

我正在 Xamarin Android 中开发应用程序,遇到一个非常奇怪的问题: 断点和异常已停止正常工作。 当我设置断点时,它永远不会被击中。我在整个项目中都设置了断点,但没有一个被击中。这在 Visual Studio 和 Xamarin Studio 中也会发生。

我还有第二个更烦人的问题,每次出现异常时,它都会在 Xamarin Studio 中抛出完全无用的“java.lang.reflect.InvocationTargetException”异常,在 Visual Studio 中抛出“发生异常”,没有更多详细信息关于异常。这只发生在一个特定的项目中,其他项目工作正常。我在各种论坛和博客中寻找解决方案,但没有一个有效。我是 Xamarin Android 开发的新手,希望您能帮助我。

最佳答案

可能也相关:

Bug 30318 - [Android] Windows only: Breakpoints in PCL projects do not work after cleaning solution, redeploying, and restarting debugging. Partial workaround: delete all the bin folders in the solution after cleaning.

删除 bin 和 obj 文件夹已经解决了我的问题,我使用的是 v. 3.11.586。

关于c# - 断点和异常停止正常工作,xamarin android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30987318/

相关文章:

android - OnCreateContextMenu 和 ListView 项

android - 以编程方式在操作栏中的一项下打开列表菜单

visual-studio - 作为构建步骤执行XSLT转换

C++ 查找入口点

c# - 单文件 ASPX 和 LINQ

javascript - 在后面的代码中获取 Facebook 登录详细信息

c# - JSON 日期字段未绑定(bind)到 C# 日期时间字段

android - 无法在 Android 中添加地理围栏,因为 "network location is disabled"

sql - 有没有办法在 SQL 播种脚本中获取 Visual Studio 环境变量?

c# - 针对 POCO 进行模式匹配的库