oven-sh/bun · error · Error

No exception found.

Error message

No exception found.

What it means

Thrown by exceptionInfo() when the adapter has no stored paused exception (#exception is unset). It fires when a client requests exception details outside of an exception-triggered pause, where there is no exception to describe.

Solutions

  1. Only call exceptionInfo while stopped on an exception pause
  2. Set breakOnException in the DAP client so exceptions are captured
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2000 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/73edf3d7ea41eabf. Report an issue: GitHub.

Appendix: source

Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2000

    if (set) {
      const { type } = set;
      if (type !== "undefined") {
        variables.push(this.#addObject(set, descriptor));
      }
    }

    if (symbol) {
      variables.push(this.#addObject(symbol, descriptor));
    }

    return variables;
  }

  async exceptionInfo(): Promise<DAP.ExceptionInfoResponse> {
    const exception = this.#exception;
    if (!exception) {
      throw new Error("No exception found.");
    }

    const { code, ...details } = await this.#getExceptionDetails(exception);
    return {
      exceptionId: code || "",
      breakMode: "always",
      details,
    };
  }

  async #getExceptionDetails(variable: Variable): Promise<DAP.ExceptionDetails & { code?: string }> {
    const properties = await this.#getProperties(variable);

    let fullTypeName: string | undefined;
    let message: string | undefined;
    let code: string | undefined;
    let stackTrace: string | undefined;
    let innerException: DAP.ExceptionDetails[] | undefined;

View on GitHub (pinned to 8c5296ac45)