Breakpoints and Exceptions stopped working properly, xamarin android

拟墨画扇 提交于 2019-12-22 04:42:12

问题


I am developing app in Xamarin Android and have a very strange problem: Breakpoints and Exceptions have stopped working properly. When I set a breakpoint it never gets hit. I have set breakpoints all over my project but none of them were hit. This happens in Visual Studio and in Xamarin Studio as well.

I also have second and more annoying problem, every time there is an exception, it throws totally unhelpful "java.lang.reflect.InvocationTargetException" exception in Xamarin Studio and "An Exception occurred" in Visual Studio, with no more details about the exception. This happens only in one particular project, other projects work fine. I have looked for the solution in various forums and blogs but none of them worked. I am pretty new to Xamarin Android development and hope you can help me.


回答1:


Possibly related too:

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.

Deleting the bin and obj folders has been fixing the issue for me, I'm on v. 3.11.586.



来源:https://stackoverflow.com/questions/30987318/breakpoints-and-exceptions-stopped-working-properly-xamarin-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!