Today, in my C++ multi-platform code, I have a try-catch around every function. In every catch block I add the current function\'s name to the exception and throw it again,
There's a nice little project that gives a pretty stack trace:
https://github.com/bombela/backward-cpp