Breakpoints not getting hit in Xamarin Studio

后端 未结 13 779
暗喜
暗喜 2020-12-31 02:56

My breakpoints aren\'t getting hit in Xamarin Studio. I\'m not sure if this has to do with my code, or not, but I feel as though it doesn\'t because I\'ve tried over and ove

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 03:11

    I had the same problem.

    THE CAUSE (IMO):

    In my case the problem is caused by Xamarin Studio (but with VS2013 is the same) build/rebuild process.

    More in details, the *.mdb files are not correctly regenerated and therefore the debugger does not work properly. You can check by doing a solution clean and going to bin/debug folder: if you still see *.mdf files then that's the problem in your case too!

    SOLUTION

    The only solution that works well is to manually delete all *.mdb files in bin/debug from all projects in your solution (so Android project and all PCL projects) and then do a Rebuild.

    Let me know if this helps!

提交回复
热议问题