You never point indent_buffer at any valid dbgBuf object.

And I'd be extremely weary about inheriting from std::streambuf.