title: Set breakpoint on a constructor
body: <p>I am trying to set a breakpoint on a constructor for a class in an external assembly using <code>Debug</code>, <code>New Breakpoint</code>, <code>Break at function</code>.</p>
  
  <p>I've tried using both <code>.ctor</code> and <code>ctor</code> as the function name but neither work</p>
  
  <ul>
  <li><code>System.Web.Mvc.ViewResult..ctor</code></li>
  <li><code>System.Web.Mvc.ViewResult.ctor</code></li>
  <li><code>System.Web.Mvc.ViewResult.ViewResult</code></li>
  </ul>
  
  <p>If the class has multiple controllers then this will work;</p>
  
  <ul>
  <li><code>System.Web.Mvc.HttpUnauthorizedResult.HttpUnauthorizedResult</code></li>
  </ul>
  
  <p>In some cases Visual Studio shows the constructor name as the class name such as with <code>HttpUnauthorizedResult</code>, but in other cases it shows the constructor name as <code>.ctor</code> such as with <code>System.Uri</code>.</p>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/D1MC0.png" alt="Breakpoints - System.Uri"></p>
  
  <p><img src="https://i.stack.imgur.com/8go3B.png" alt="Breakpoints"></p>