[BUG] chromium --remote-debugging-port arg does not work
See original GitHub issueContext:
- Playwright Version: v1.1.1
- Operating System: Mac
- Node version: v12.16.3
- Browser: Chromium
Code Snippet
const http = require("http");
const { chromium } = require("playwright");
(async () => {
const browser = await chromium.launch({
args: ["--remote-debugging-port=9999"],
headless: false,
});
const page = await browser.newPage();
http.get("http://localhost:9999");
})();
Describe the bug
This script throws Error: connect ECONNREFUSED 127.0.0.1:9999.
I see there is a test that it does not throw an error, but not one for connecting to the port. Is this argument not supported?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
878 - chromedriver does not return if --remote-debugging-port ...
Issue 878: chromedriver does not return if --remote-debugging-port argument is specified · 1) Run chromedriver · 2) When chrome is launched, pause the...
Read more >Bug? with headless chrome and remote-debugging option
I believe it's because chromedriver uses the remote debugging functionality to do its thing, and chrome only supports one remote debugging client. https://bugs....
Read more >How to make Chrome always launch with remote-debugging ...
But I want to setup Chrome such that whenever it is launched by any other application, it always opens with the remote debugging...
Read more >Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >Debugging in the Simulator and Tableau
Additionally, starting with Tableau Desktop 2019.4, you can use the Chrome DevTools and the Chromium debugger to debug issues that appear in Tableau...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I just saw that when I was investigating the source code to make a PR for this. That works, thanks!
@jperl To aid VSCODE, you can pass
PLAYWRIGHT_CHROMIUM_DEBUG_PORT=9999env variable. It was added awhile ago specifically for this purpose!Does it help?