Skip to content

[Bug] Windows: --remote-debugging-port not bound when using Chrome's default profile dir #239

Description

@stelvetica

Summary

On Windows, when --remote-debugging-port is combined with Chrome's default Profile directory (--user-data-dir=C:\Users\<user>\AppData\Local\Google\Chrome\User Data), the debugging port is never bound — Chrome starts but doesn't listen on the port. Only a non-default / temp profile directory binds the port. This makes it impossible to connect bb-browser to a user's everyday Chrome profile (which is where their cookies/login state live), forcing manual re-login in a separate profile.

Reproduction

  1. Close all Chrome.
  2. Launch Chrome with the default profile dir + debug port:
    chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\Users\ETT\AppData\Local\Google\Chrome\User Data"
  3. curl http://127.0.0.1:9222/json/version → connection refused; netstat shows no LISTENING on 9222, even though chrome.exe is running with the correct flags in its command line.
  4. Same command with a temp dir (--user-data-dir=C:\temp\foo) → port 9222 binds fine and CDP responds.

Expected Behavior

--remote-debugging-port should bind regardless of whether the profile dir is the default one, so bb-browser can connect to the user's real, already-logged-in Chrome profile and reuse login cookies without re-login.

Actual Behavior

Debug port only binds for non-default profile dirs. With the default User Data dir the flag is silently ignored (Chrome runs, no listener).

Impact

This is the core blocker for the "connect to my real Chrome and reuse my login state" workflow on Windows. Copying the profile to a temp dir also fails because Chrome's App-Bound Encryption wipes the copied login cookies. So Windows users effectively cannot use their real login state with bb-browser.

Environment

  • bb-browser: 0.14.2
  • Install: npm -g
  • OS: Windows 10 (win32)
  • Node: v24.19.0
  • Browser: Google Chrome 151.0.7922.76

Related

Happy to provide more details or a minimal repro script.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions