如何在通用类/方法上设置功能断点?
我可能正在尝试找出要使用的语法。这是我要设置的类/方法:-
namespace MyCustom.SpecialNS
{
public class SomeGenericConditionClass<T> : BaseConditionNS.WhenCondition<T> where T : BaseRuleNS.RuleContext
{
protected override bool Execute(T ruleContextParam)
{
string hello = "Hello. Set Breakpoint here!";
return true;
}
}
}
作为一个FYI,我试图调试第三方dll,在其中我设置了其他方法来使用功能断点调试常规的具体类/方法。即我可以设置
MyCustom.SpecialNS.SimpleConcreteClass.BasicExecute(MyCustomAttrNS.MyAttributeType)
它会成功破裂。但是对于泛型,我不确定类型T是什么,或者不能正确设置函数断点的语法是什么,它是第三方DLL,所以我不能只打开代码并单击以创建断点。
我努力了
MyCustom.SpecialNS.SomeGenericConditionClass.Execute
和
MyCustom.SpecialNS.SomeGenericConditionClass<T>.Execute<T>
以及它周围的许多其他变体,但我无所作为。
有任何想法吗?
SomeGenericConditionClass<T>.Execute
为我工作。(摘自我上面的评论。)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句