title: EF6 Silent Error. How can I get more detail on why I'm failing on context.SaveChanges()
body: <p>I'm baffled on this one.<br> Nothing returns from context.SaveChanges() it never goes to the catch it never finishes and the variable r never gets assigned a value. </p>
  
  <p>How can I find out what the error is?</p>
  
  <pre><code>public void DeleteStuff(int stuffID)
  { 
      using (var context = new MYConn())
      {
          var user = new MY_STUFF { STUFF_ID = stuffID};
          var entry = context.Entry(user);
          if (entry.State == EntityState.Detached)
          {
              context.MY_STUFF.Attach(user);
          }
          context.MY_STUFF.Remove(user);
          try
          {
              var r = context.SaveChanges();
          }
          catch (Exception ex)
          {
              string a = ex.Message;
          }
      }
  }
  </code></pre>