r/cpp • • Apr 19 '26

Adding Stack Traces to All C++ Exceptions

https://werwolv.net/posts/cpp_exception_stacktraces/
120 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/eakmeister Apr 19 '26

I think this is a generally better approach, and simpler to implement as well. The first thing I do on any C++ project is set the default terminate and signal handlers to print a stack trace. Honestly it should just be part of the language, can't see a downside.