add method Clear
eliminated the warning: DebugHook

Symbol 'DebugHook' is specific to a platform