C++ display stack trace on exception

I want to have a way to report the stack trace to the user if an exception is thrown. What is the best way to do this? Does it take huge amounts of extra code?

To answer questions:

I’d like it to be portable if possible. I want information to pop up, so the user can copy the stack trace and email it to me if an error comes up.

16 Answers
16

Leave a Comment