Xamarin工作室不会受到伤害 [英] Breakpoints not getting hit in Xamarin Studio

查看:208
本文介绍了Xamarin工作室不会受到伤害的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的断点在Xamarin工作室没有受到打击。我不知道这是否与我的代码有关,但我觉得好像不是因为我已经尝试过断点在我的项目(在我知道他们肯定会在命中,并且在代码工作完美的地方,与我目前正在测试的功能完全不相关),并且在调试时都没有得到确认。我没有断点,我没有把它们添加到错误的地方。断点应该正常工作,而不是。我还会补充说,我不允许在调试过程中暂停我的应用程序。我想你可以说我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆