title: How to make Visual Studio on Mac break on error line instead of breaking in the main class?
body: <p>When I'm debugging my project and I encounter a runtime error the debugger stops on the main line instead of the error line.</p>
  <p>using AppKit;</p>
  <pre><code>namespace Project {
      static class MainClass {
          static void Main(string[] args) {
              NSApplication.Init();
              NSApplication.Main(args); // breaks here
          }
      }
  }
  </code></pre>
  <p>Instead of error line:</p>
  <pre><code>if (isTrue) {
      button.Title = &quot;Title&quot;; // Object reference not set to an instance of an object
  }
  </code></pre>
  <p>Is there a way to change this so it breaks on the line that has the error?</p>
  <p><a href="https://i.stack.imgur.com/Uvz5w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uvz5w.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/5MuaE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5MuaE.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/lxgU1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxgU1.png" alt="enter image description here" /></a>
  I tried the Ignore option:</p>
  <p><a href="https://i.stack.imgur.com/anTYl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/anTYl.png" alt="enter image description here" /></a></p>
  <p>However, it is unchecked the next time around:</p>
  <p><a href="https://i.stack.imgur.com/G5CRH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G5CRH.png" alt="enter image description here" /></a></p>