Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints and Exceptions stopped working properly, xamarin android

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.

like image 277
Nika Kurdadze Avatar asked Jun 22 '15 18:06

Nika Kurdadze


1 Answers

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.

like image 79
Derek Beattie Avatar answered Oct 13 '22 00:10

Derek Beattie