def METHOD_NAME(ctx: click.Context, param: Any, value: Any) -> None:
    if value and not ctx.resilient_parsing:
        log.debug("Enabling debug")
        core_context = cast(CoreContext, ctx.obj)
        core_context.state.set(StoreKey[bool]("vdk.debug"), True)