Update debug_hook