Xamarin工作室不会受到伤害 [英] Breakpoints not getting hit in Xamarin Studio
问题描述
这是最受欢迎的问题:谷歌中的在xamarin中没有被打破,所以在整个一天尝试和错误我将在这里发布这个问题的解决方案为xamarin版本> 4.0.0.xxx。是的,可悲的是这很简单。
解决方案
(此解决方案适用于视觉工作室中的Android应用程序,但应在xamarin工作室中工作)
从路径中删除所有符号到Debug文件:
所以如果你有:
G:\My Files\Programming\C#(+ JS)\Test1\Examples\LINQ to Objects\AndroidDemo\AndroidDemo\\ \\ bin \Debug
将其更改为:
G:\My Files\Programming\CSharp\Test1\Examples\LINQ to Objects\AndroidDemo\AndroidDemo\bin\Debug
/ pre>
对于我来说,(和)符号引起了麻烦(无论如何,谁在使用这些符号为了验证这是否正常,请在VIsual Studio中打开您的调试文件夹。选择清除解决方案,重新编译解决方案,部署。
/ p>
部署操作应该会生成* .mdb文件包含调试数据。如果他们在场,你现在应该可以在断点停止。
现在,只要你需要调试某些东西,就可以像往常一样按F5。
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 over putting breakpoints all over my project (in places where I know they should definitely be hit, and in places that the code works perfectly and is completely unrelated to the feature I'm currently testing) and none of them are getting acknowledged when I debug. I don't have the breakpoints disabled, and I don't have them added in the wrong place. The breakpoints should work normally, and they're not. I'll also add that I'm not allowed to pause my application during the debugging process. I suppose you could say the debugger in my Xamarin Studio isn't working and I have no idea why. I believe I've determined it's unrelated to the code, but I can't be sure about that still. Please help. Thank you.
解决方案 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 Debug file:
So if you got:
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.
这篇关于Xamarin工作室不会受到伤害的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!