microsoft / microsoft/vscode-js-debug

Launch a new tab in the existing/running Chrome instance

Open
#988 3 comments 8 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since May 6, 2021.

feature-request
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

I have an instance of Chrome running with remote debugging enabled. I would like VS Code to launch a new tab (and/or window) in this instance and attach the debugger to it.

As far as I understand, the attach task is not what I need here, because this is intended for attaching to an existing tab.

I have tried using a launch task but it doesn't seem to open a new tab. Instead, it will navigate to url in the most recent tab, and then open a new blank tab.

{
    "type": "pwa-chrome",
    "request": "launch",
    "name": "Launch Chrome (existing)",
    "url": "http://localhost:5000",
    "webRoot": "${workspaceRoot}",
    // By default, the extension launches Chrome with a separate user profile in a temp folder. We
    // set it to `false` to launch with the default user profile instead, so we don't have to
    // reinstall extensions like React dev tools and re-configure any preferences.
    "userDataDir": false,
    "port": 9222
}

Is there a way to make it open a new tab instead?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.