سؤال

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

هل كانت مفيدة؟

المحلول

Use backtrace() or StackWalker for Unix or Windows.

See this previous SO question:

C++ display stack trace on exception

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top