Breakpoints not getting hit in Xamarin Studio

后端 未结 13 777
暗喜
暗喜 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:38

    It is the most popular question about: "breakpoints are not being hit in xamarin" in google, so after whole day of trial and error I am gonna post here a solution for this problem for xamarin versions > 4.0.0.xxx. Yes, sadly this is simple.

    SOLUTION (This solution is for android app in visual studio, but should work in xamarin studio as well)

    Remove all symbols from the path to your "Debug" Folder (usually: [path to your .sln file] \ [your solution name] \bin\Debug):

    So if you got for example:

    G:\My Files\Programming\C# (+ JS)\Test1\Examples\LINQ to Objects\AndroidDemo\AndroidDemo\bin\Debug
    

    Change it to:

    G:\My Files\Programming\CSharp\Test1\Examples\LINQ to Objects\AndroidDemo\AndroidDemo\bin\Debug
    

    For me "(" and ")" symbols were causing the trouble (Who is using such symbols in the path anyway right?)

    To verify that this is working, open your debug folder, in VIsual Studio Select "Clean Solution", "Recompile Solution", "Deploy".

    "Deploy" action should generate *.mdb files which include your debugging data. If they are present, you should now be able to stop at breakpoints.

    Now you can simply hit F5 like usual whenever you need to debug something.

    0 讨论(0)
提交回复
热议问题