r/cpp • u/Xadartt • 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
75
Upvotes
r/cpp • u/Xadartt • Apr 16 '26
View all comments
Show parent comment
1
u/irqlnotdispatchlevel Apr 18 '26
I wasn't talking about doing the right thing based on flags, but about giving devs freedom of choice.
std::stacktrace::current()remains as it is now, and you addstd::stacktrace::current_raw()which doesn't do symbolization.Or, if we're fancy, we let the user pass in a symbolizer, with a default one provided by the standard.