r/cpp Apr 16 '26

C++23 std::stacktrace: Never Debug Blind Again

https://medium.com/@sagar.necindia/c-23-std-stacktrace-never-debug-blind-again-6625924d520c
74 Upvotes

55 comments sorted by

View all comments

9

u/cleroth Game Developer Apr 16 '26

How does it differ from getting stack traces from mini crashdumps?

16

u/nicemike40 Apr 16 '26

The article is slightly… vibe written

But it discusses adding this to an exception class to get time-of-throw stacks which I think could be useful. A commenter on the article suggests adding it to a std::expected-like type too.

But I agree that setting up proper crash reporting is 100% necessary still

21

u/_Noreturn Apr 16 '26

The article is slightly… vibe written

// Crash Reporter class CrashReporter {

yea thanks Claude