title: How to find line/method that caused a debug assertion error in Visual C++
body: <p>I'm working on a program that sometimes throws debug assertion errors on vectors, more speifically the errors is:</p>
  
  <p>Expression: vector iterator not dereferencable</p>
  
  <p>The problem is that I don't know the line or method where this error is occuring. I'd prefer not to manually step/break through my program until the error occurs. I'm looking for away to find the line number or at least the method that is causing this error.</p>
  
  <p>I'm using VS2010</p>
  
  <p>thanks in advance</p>