A debugging class for C++