title: Stop Visual Studio from breaking on exception in Tasks
body: <p>I have the following code:</p>
  <pre><code>Task load = Task.Factory.StartNew(() =&gt; {//Some Stuff Which Throws an Exception});
  
  try
  {
      load.Wait();
  }
  catch (AggregateException ex)
  {
      MessageBox.Show(&quot;Error!&quot;);
  }
  </code></pre>
  <p>Whenever an exception is thrown in the Task, I want it to bubble up and get caught in the try catch instead of Visual Studio breaking at the point the exception is caused.</p>
  <p>I tried Google and some suggested I add this <code>[DebuggerHidden]</code> on top of my method, but it doesn't work.</p>