本文介绍了断点不会在Xamarin Studio中受到打击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的断点在Xamarin Studio没有受到打击。我不知道这是否与我的代码,或不,但我觉得,因为它不是因为我已经尝试过一遍又一遍地把断点放在我的项目(在我知道他们应该肯定的地方命中,在代码工作完美,与我目前测试的功能完全无关的地方),而且没有一个在调试时得到承认。我没有禁用断点,我没有他们添加在错误的地方。断点应该正常工作,而不是。我还要补充说,我不能在调试过程中暂停我的应用程序。我想你可以说在我的Xamarin Studio中的调试器不工作,我不知道为什么。我相信我已经确定它与代码无关,但我不能确定这仍然。请帮忙。谢谢。

解决方案

这是最流行的问题:断点不是在xamarin中在google中,尝试和错误我要在这里为这个问题的解决方案xamarin版本> 4.0.0.xxx。是的,可悲的是这很简单。



解决方案
(此解决方案适用于visual studio中的android应用程式,但也应在xamarin工作室中使用)



删除调试文件路径中的所有符号:



所以如果你有:

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

将其更改为:



< pre> b

对我来说,(和)符号引起麻烦(谁在路径中使用这样的符号为了验证这是否正常,请在VIsual Studio中打开调试文件夹选择清洁解决方案,重新编译解决方案,部署。 / p>

Deploy操作应生成包含调试数据的* .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 Studio中受到打击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 16:19