33 #include <boost/shared_ptr.hpp> 35 #include "../runtime/TypeStringTools.h" 36 #include "rsc/rscexports.h" 53 static DebugToolsPtr newInstance();
60 virtual std::vector<std::string> createBacktrace(
61 const unsigned int& maxElements = 20) = 0;
63 std::string formatBacktrace(
const std::vector<std::string>& trace);
72 template<
class ExceptionType>
77 s <<
"Backtrace:" << std::endl;
78 std::vector<std::string> trace = createBacktrace();
79 s << formatBacktrace(trace);
std::string typeName(const std::type_info &type)
Returns a (demangled) string representation of type.
boost::shared_ptr< DebugTools > DebugToolsPtr