Reasking约打在属性setter断点 [英] Reasking about hitting breakpoint at property setter

查看:212
本文介绍了Reasking约打在属性setter断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现这个解决方案:
调试自动属性

I found this solution: Debugging automatic properties

我试着用它来工作,但它没有做任何事情。不打破这种解决方案的制定者仍然工作?

I tried to work with it, but it doesnt do anything. Does this solution to break at the setter still work?

据我所看到的,我所要做的就是创建一个断点。我的类有名称RecordCompetitionTitleBuilderIndividual,物业EVENTDATA。

As far as I've seen, all i have to do is creating a Breakpoint. My class has the name RecordCompetitionTitleBuilderIndividual, the Property EventData.

所以,我刚才设置的断点是这样的:

So I just set the Breakpoint at something like this:

RecordCompetitionTitleBuilderIndividual.set_EventData(空)

RecordCompetitionTitleBuilderIndividual.set_EventData(null)

但这并不做任何事情。难道我做错了什么,或者是有一种新的可能性,使调试的属性发生了什么?

But this doesnt do anything. Am I doing something wrong, or is there a new possibility to make debugging a property happening?

感谢,并在新的一周一个良好的开端!

Thanks and a good start in the new week!

马蒂亚斯

推荐答案

只需设置属性名断点(不带参数和括号)

Just set the breakpoint for the property name (without parameter and parentheses)

RecordCompetitionTitleBuilderIndividual.set_EventData

只是检查VS2010

Just checked for VS2010

这篇关于Reasking约打在属性setter断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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