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.

SkipFiles does not work in Chrome attach mode

See original GitHub issue

Describe the bug The same skipFiles configuration, which works in launch mode, does not work in attach mode.

To Reproduce

  1. Create following configurations:
    {
      "name": "Chrome",
      "type": "pwa-chrome",
      "request": "launch",
      "url": "http://localhost:1234",
      "skipFiles": [
        "${workspaceRoot}/node_modules/**/*.js",
      ],
      "trace": true
    },
    {
      "type": "pwa-chrome",
      "request": "attach",
      "name": "Attach to Chrome",
      "port": 9222,
      "skipFiles": [
        "${workspaceRoot}/node_modules/**/*.js",
      ],
      "trace": true
    },
  1. Run Attach to Chrome configuration.

Actual result: node_modules are not skipped image

Expected result (as in launch Chrome configuration above) image

Log File

From Attach to Chrome: https://drive.google.com/file/d/1x42XTf8bXffw8Mo_JzTQYrEAVWLHBEh1/view?usp=sharing

From launch Chrome: https://drive.google.com/file/d/1B3DawKmbpmzaypoOOx4PpavaO1TOcXUG/view?usp=sharing

VS Code Version: Version: 1.47.0 (system setup) Commit: d5e9aa0227e057a60c82568bf31c04730dc15dcd Date: 2020-07-09T08:02:06.629Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18362

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Jul 15, 2020

Good to hear!

Because that was a less common and relatively minor issue (+ also involving a refactoring which carries some danger) I do not intend to ship that in a June recovery release. So this won’t go out to VS Code stable users until the July release, in early August. It will be on Insiders earlier, probably starting tomorrow.

1reaction
connor4312commented, Jul 15, 2020

@egorshulga does this happen in the nightly build? I’m wondering if you’re hitting the same issue that Mike hit in https://github.com/microsoft/vscode/issues/102412#issuecomment-658301904

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I skip external code when debugging in VS Code
In your launch or attach debug task you can enter a. "skipfiles". option which is. "An array of file or folder names, or...
Read more >
Debug Node.js Apps using Visual Studio Code
In smart Auto Attach mode, VS Code will try to attach to your code, and not attach to build tools you aren't interested...
Read more >
Debugger for Chrome - Open VSX Registry
You can use the skipFiles property to ignore/blackbox specific files while debugging. For example, if you set "skipFiles": ["jquery.js"] , then you will...
Read more >
nextjs - # - debugging - # - vscode - # - devtools
In the browser at least it was working but then Node.js came and it ... is not at the root of your VSCode...
Read more >
https://raw.githubusercontent.com/Microsoft/vscode...
**Note**: Active development for Chrome debugging in VS Code is happening in ... com/microsoft/vscode/issues/68127) * Fix slow attach when files don't exist ...
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