microsoft / microsoft/vscode-js-debug

`autoAttachSmartPattern` should also apply to `autoAttachChildProcesses`

Open
#1,246 1 comment 3 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Apr 29, 2022.

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

Description

It’s expensive & time-consuming to automatically attach debuggers to every child process when using a task runner like yarn. We don’t need to attach to the yarn process, but can end up getting a large chain of attached debuggers, when we only want to debug the leaf process.

We can fix this in the integrated terminal only by configuring like so:

{
  "debug.javascript.autoAttachFilter": "smart",
  "debug.javascript.autoAttachSmartPattern": ["<PATH_TO_DESIRED_PROGRAM>"]
}

This prevents attaching to everything except the leaf processes that you specify, which greatly improves startup time.

However, this functionality is only enabled in the integrated terminal—nowhere else supports autoAttachSmartPattern.

I think that we should enable autoAttachSmartPattern in the launch.json options and it would function the same way.

Apologies if I’m missing something—I pored over the docs but I couldn’t find a different way to make this work.

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.