TnFOX comes with a number of inbuilt debugging and stress-testing facilities:
- FX::FXException::setGlobalErrorCreationCount() allows you to have random exceptions fire, thus letting you test that the stack unwinds correctly.
- FX::QMutex::setMutexDebugYield() allows you to have all mutex locks immediately yield the processor, thus helping any code altering data without holding a suitable lock to become more evident.
- FX::FXProcess::overrideFreeResources() lets you override memory, processor and disc i/o full indicators so you can test operation in memory low situations.
On MSVC only:
- FXMemDbg.h lets you list all memory leaks and where they were allocated. Use valgrind instead on Linux.