title: How to automatically get the exception type and message from C++ programs on Mac?
body: <p>From Linux I know that in case a C++ program throws an exception, the exception type and message are printed on the terminal while the program dies. On mac, however, the only thing you get is:</p>
  
  <pre><code>libc++abi.dylib: terminate called throwing an exception
  Abort trap: 6
  </code></pre>
  
  <p>Of course I could run the program in a debugger, but that's usually much more overhead just to see the exception type and message.</p>
  
  <p>Is there any way to enable exception type and message printing on mac with any magic command?</p>
  
  <p>Edit: I know what the correct way is to handle such situations with exception handling. It is more out of curiosity to find out whether the linux behavior can be reproduced on mac.</p>