Add missing function declarations found in debug.cpp to debug.h