Question

Is there any methods to implement a 'printstacktrace' method in C++ like the Java do?

Was it helpful?

Solution

Use backtrace() or StackWalker for Unix or Windows.

See this previous SO question:

C++ display stack trace on exception

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top