question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] chromium --remote-debugging-port arg does not work

See original GitHub issue

Context:

  • 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jperlcommented, Jun 23, 2020

I just saw that when I was investigating the source code to make a PR for this. That works, thanks!

0reactions
aslushnikovcommented, Jun 23, 2020

@jperl To aid VSCODE, you can pass PLAYWRIGHT_CHROMIUM_DEBUG_PORT=9999 env variable. It was added awhile ago specifically for this purpose!

Does it help?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found