def METHOD_NAME(
    self, plugin_registry: PluginRegistry, command_line_args: List
) -> None:
    """
    check if debug is needed and active it if yes.
    We also check with env variable.
    We do not use vdk_configure hook in order to trigger the recorder
    at earliest moment possible.
    """
    if "--debug-hooks" in command_line_args:
        # a bit hacky but works for hidden options
        command_line_args.remove("--debug-hooks")
        self.hook_recorder = HookRecorder(plugin_registry)
    if os.getenv("VDK_DEBUG_HOOKS_ENABLED", "no") == "yes":
        self.hook_recorder = HookRecorder(plugin_registry)