A class providing platform-specific runtime debugging tools, e.g.
More...
#include <DebugTools.h>
|
virtual | ~DebugTools () |
|
virtual std::vector< std::string > | createBacktrace (const unsigned int &maxElements=20)=0 |
| Generates a string representation of the current thread's backtrace. More...
|
|
std::string | formatBacktrace (const std::vector< std::string > &trace) |
|
template<class ExceptionType > |
std::string | exceptionInfo (const ExceptionType &e) |
| Generates a string giving verbose information about an exception in the given context. More...
|
|
A class providing platform-specific runtime debugging tools, e.g.
to generate a backtrace.
Definition at line 48 of file DebugTools.h.
rsc::debug::DebugTools::~DebugTools |
( |
| ) |
|
|
virtual |
rsc::debug::DebugTools::DebugTools |
( |
| ) |
|
|
protected |
virtual std::vector<std::string> rsc::debug::DebugTools::createBacktrace |
( |
const unsigned int & |
maxElements = 20 | ) |
|
|
pure virtual |
template<class ExceptionType >
std::string rsc::debug::DebugTools::exceptionInfo |
( |
const ExceptionType & |
e | ) |
|
|
inline |
Generates a string giving verbose information about an exception in the given context.
Use this immediately after catching the exception.
- Parameters
-
e | the exception to analyze |
- Template Parameters
-
ExceptionType | type of the caught exception |
Definition at line 73 of file DebugTools.h.
References rsc::runtime::typeName().
string rsc::debug::DebugTools::formatBacktrace |
( |
const std::vector< std::string > & |
trace | ) |
|
The documentation for this class was generated from the following files: