Portable stack traces in C++
github.com
github.com
Correct, you would have to add trace statements at strategic points to get more detailed traces; but the granularity is up to you and once you have basic tracing in, it's usable for more than stack-tracing. In my opinion, basic tracing should be built into any substantial piece of code.
Anyway, this is a neat project, but you don't say much about practical use. Do I really have to manually add TRACE() to the start of every function if I want it to show up in a stack trace, or is there a better way?