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
- Close all Chrome.
- 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"
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.
- 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.
Summary
On Windows, when
--remote-debugging-portis 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
curl http://127.0.0.1:9222/json/version→ connection refused;netstatshows no LISTENING on 9222, even thoughchrome.exeis running with the correct flags in its command line.--user-data-dir=C:\temp\foo) → port 9222 binds fine and CDP responds.Expected Behavior
--remote-debugging-portshould 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 Datadir 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.2npm -gRelated
Happy to provide more details or a minimal repro script.