{"record":{"id":"e453c39cc0d62448","repo":"microsoft/playwright","slug":"playwright-manages-remote-debugging-connection-its","errorCode":null,"errorMessage":"Playwright manages remote debugging connection itself.","messagePattern":"Playwright manages remote debugging connection itself\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/server/bidi/bidiChromium.ts","lineNumber":111,"sourceCode":"    chromeArguments.push('--remote-debugging-port=0');\n    if (isPersistent)\n      chromeArguments.push('about:blank');\n    else\n      chromeArguments.push('--no-startup-window');\n    return chromeArguments;\n  }\n\n  override async waitForReadyState(options: types.LaunchOptions, browserLogsCollector: RecentLogsCollector): Promise<{ wsEndpoint?: string }> {\n    return waitForReadyState({ ...options, args: ['--remote-debugging-port=0'] }, browserLogsCollector);\n  }\n\n  private _innerDefaultArgs(options: types.LaunchOptions): string[] {\n    const { args = [] } = options;\n    const userDataDirArg = args.find(arg => arg.startsWith('--user-data-dir'));\n    if (userDataDirArg)\n      throw this._createUserDataDirArgMisuseError('--user-data-dir');\n    if (args.find(arg => arg.startsWith('--remote-debugging-pipe')))\n      throw new Error('Playwright manages remote debugging connection itself.');\n    if (args.find(arg => !arg.startsWith('-')))\n      throw new Error('Arguments can not specify page to be opened');\n    const chromeArguments = [...chromiumSwitches()];\n\n    if (os.platform() === 'darwin') {\n      // See https://issues.chromium.org/issues/40277080\n      chromeArguments.push('--enable-unsafe-swiftshader');\n    }\n\n    if (options.headless) {\n      chromeArguments.push('--headless');\n\n      chromeArguments.push(\n          '--hide-scrollbars',\n          '--mute-audio',\n          '--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4',\n      );\n    }","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/server/bidi/bidiChromium.ts#L93-L129","documentation":"Error \"Playwright manages remote debugging connection itself.\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/server/bidi/bidiChromium.ts:111 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":"c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6","analyzedAt":"2026-08-12T07:26:36.950Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}