haddocks for installDebugHook