在构造函数上设置断点

时间:2014-10-01 11:52:19

标签: c# visual-studio-2010 breakpoints

我正在尝试使用DebugNew BreakpointBreak at function在外部程序集中为类的构造函数设置断点。

我已尝试同时使用.ctorctor作为功能名称,但均未使用

  • System.Web.Mvc.ViewResult..ctor
  • System.Web.Mvc.ViewResult.ctor
  • System.Web.Mvc.ViewResult.ViewResult

如果班级有多个控制器,那么这将有效;

  • System.Web.Mvc.HttpUnauthorizedResult.HttpUnauthorizedResult

在某些情况下,Visual Studio会将构造函数名称显示为类名称,例如HttpUnauthorizedResult,但在其他情况下,它会将构造函数名称显示为.ctor,例如System.Uri。< / p>


Breakpoints - System.Uri

Breakpoints

0 个答案:

没有答案
相关问题