{"record":{"id":"8ea1bdb0bbed5708","repo":"oven-sh/bun","slug":"inspector-does-not-offer-a-url","errorCode":null,"errorMessage":"Inspector does not offer a URL","messagePattern":"Inspector does not offer a URL","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bun-debug-adapter-protocol/src/debugger/adapter.ts","lineNumber":330,"sourceCode":"    this.#breakpoints = new Map();\n    this.#futureBreakpoints = new Map();\n    this.#functionBreakpoints = new Map();\n    this.#targets = new Map();\n    this.#variableId = 1;\n    this.#variables = new Map();\n  }\n\n  /**\n   * Gets the inspector url. This is deprecated and exists for compat.\n   * @deprecated You should get the inspector directly (with .getInspector()), and if it's a WebSocketInspector you can access `.url` direclty.\n   */\n  get url(): string {\n    // This code has been migrated from a time when the inspector was always a WebSocketInspector.\n    if (this.inspector instanceof WebSocketInspector) {\n      return this.inspector.url;\n    }\n\n    throw new Error(\"Inspector does not offer a URL\");\n  }\n\n  public getInspector() {\n    return this.inspector;\n  }\n\n  abstract start(...args: unknown[]): Promise<boolean>;\n\n  /**\n   * Sends a request to the JavaScript inspector.\n   * @param method the method name\n   * @param params the method parameters\n   * @returns the response\n   * @example\n   * const { result, wasThrown } = await adapter.send(\"Runtime.evaluate\", {\n   *   expression: \"1 + 1\",\n   * });\n   * console.log(result.value); // 2","sourceCodeStart":312,"sourceCodeEnd":348,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/packages/bun-debug-adapter-protocol/src/debugger/adapter.ts#L312-L348","documentation":"Error \"Inspector does not offer a URL\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:330 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}