microsoft / microsoft/vscode-js-debug

Add an allowlist/denylist for browser sourcemap locations

Open
#1,707 1 comment 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since May 18, 2023.

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

Description

Describe the bug
I'm debugging a React app in msedge. Instead of launching localhost, I'm launching teams.microsoft.com since my app will be loaded in Teams (iframe to localhost).
The issue is, if I set any breakpoint before launching, the whole browser gets slow and loads for several minutes.
But when there's no breakpoint, or set after page launched, the browser acts as normal.

To Reproduce
Steps to reproduce the behavior:

  1. Create react app npx create-react-app my-app
  2. Open the app in VSCode
  3. Add launch.json
{
  "version": "0.2.0",
  "configurations": [
      {
          "type": "msedge",
          "request": "launch",
          "name": "Launch Teams",
          "url": "https://teams.microsoft.com/_#/l/app/",
          "webRoot": "${workspaceFolder}/src",
          "trace": true
      }
  ]
}
  1. Set breakpoint
  2. Debug

Log File
Sent via email

VS Code Version:
Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

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.