1

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?

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(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!

Matthias

4

2 回答 2

3

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

RecordCompetitionTitleBuilderIndividual.set_EventData

刚刚检查了VS2010

于 2013-08-26T14:05:13.067 回答
2

您实际上可以使用 IL Disassembler 找到 setter 和 getter 方法的名称,以便通过按 Ctrl+B 来设置调试器。

还有一些 VS 插件可以通过将其集成到 VS 中来帮助您更轻松地完成此任务,例如 Oz Code,只需检查对象实例并单击 wand thingie 即可在属性集上设置条件断点: 在此处输入图像描述

于 2015-08-06T16:54:21.950 回答