title: Don't know where exception was thrown using google-test
body: <p>We are using Google Test as our C++ unit testing framework. But I ran into a painful situation and don't know how to deal with. </p>
  
  <p>Basically, when there is an uncaught exception in the code, I got the following error message printed in the console and get a <strong>FAILED</strong>. Obviously, the exception is captures by google test. However, I have no information at all where is the exception was throw. </p>
  
  <blockquote>
    <p>unknown file: error: SEH exception with code 0xc000005 thrown in the test body. </p>
  </blockquote>
  
  <p>What I can do is debug and step through the code and I will eventually figure out where the problem is. But this is not very efficient as the project is big. </p>
  
  <p>I want the debugger to stop at the line of uncaught exception and give me a nice call stack. Is there any settings in google test that I don't know of? Any other work around or suggestions will be very much appreciated. </p>
  
  <p>Edit: I am looking for something like the following under Windows
  <img src="https://i.stack.imgur.com/Ut7nN.png" alt="enter image description here"></p>
  
  <p>Finally according to the answers, I found this settings for visual studio and everything works as the way I want now :) 
  <img src="https://i.stack.imgur.com/1jYKo.png" alt="enter image description here"></p>