For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/runtime/variables/debug.md.
  • 简体中文
  • Variable: debug

    const debug: {
      d: (m: string, msg: string, ...args: unknown[]) => void;
      i: (m: string, msg: string, ...args: unknown[]) => void;
      w: (m: string, msg: string, ...args: unknown[]) => void;
      e: (m: string, msg: string, ...args: unknown[]) => void;
    };

    Defined in: sapi/runtime/debug-log.ts:130

    SAPI 调试日志门面(DEBUG/INFO/WARN 控制台默认关闭;ERROR 始终 console.warn)。 d/i/w/e 对应 DEBUG/INFO/WARN/ERROR;首参为短模块标签。 e 的 args 中若含 Error,Sentry sink 会优先用于 captureException。

    Type Declaration

    NameTypeDescriptionDefined in
    d()(m: string, msg: string, ...args: unknown[]) => voidDEBUGsapi/runtime/debug-log.ts:132
    i()(m: string, msg: string, ...args: unknown[]) => voidINFOsapi/runtime/debug-log.ts:134
    w()(m: string, msg: string, ...args: unknown[]) => voidWARNsapi/runtime/debug-log.ts:136
    e()(m: string, msg: string, ...args: unknown[]) => voidERRORsapi/runtime/debug-log.ts:138