title: Visual Studio 2015 Winforms bug - Error when setting a breakpoint
body: <p>Create a WinFrm app - Paste this code into a button click handler and create a global variable bool keepGoing -  set a breakpoint on Thread.Sleep(500) and run it. The program will stop working but  I don't know why. Using .NET Framework 4.5.2 on Windows 10</p>
  
  <pre><code>    bool keepGoing = true;
      private void button1_Click(object sender, EventArgs e)
      {
  
          Task.Factory.StartNew(()=&gt; 
          {
              while (keepGoing)
              {
                  try
                  {
                      Thread.Sleep(500);//set breakpoint here
  
                  }
                  catch (Exception ex)
                  {
                      throw;
                  }
              }
          });
      }
  </code></pre>