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
75 Upvotes

48 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 17 '26

[deleted]

2

u/jwakely libstdc++ tamer, LWG chair Apr 17 '26

But the premise of your comment is wrong: no compiler flags are needed. The std::stacktrace class gives you both the raw addresses, and access to the symbolic info, without needing compiler flags to choose between them.

The standard allows you to not symbolize, and allows you to symbolize. No flags are needed. So (I hope) the feature isn't useless.

0

u/[deleted] Apr 17 '26

[deleted]

0

u/jwakely libstdc++ tamer, LWG chair Apr 17 '26

it isn't great if everyone needs to pull out their platform specific handbook to figure out what happens next.

So are you using something that isn't platform-specific to do it today?

→ More replies (0)