Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2: Debugger hits unexisting breakpoints quickly and then continues #877

Closed
jabuj opened this issue Dec 2, 2020 · 1 comment
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s)

Comments

@jabuj
Copy link

jabuj commented Dec 2, 2020

Describe the bug

I attach a debugger to the new MS Edge to a running react app and don't set any breakpoints. When I reload a page, there is a sequence of breakpoints that hit for a fraction of a second and immediately continue. This is very annoying, mainly because in doing so it reveals the "Sources" panel in developer tools all the time although I want "Console" tab to be open.

Some observations:

  1. It happens only when I set at least one breakpoint before reloading the page. When I just start the debugger, everything is fine, but when I create a breakpoint then delete it and reload the page, this happens
  2. It also happens when I use logpoints, but not always. It happened on the main project where I discovered the issue, but it didn't when I tried to reproduce it on an empty CRA project (it didn't happen when hitting log points, but it did when reloading page)
  3. It also happens in chrome or when launching chrome/edge instead of attaching to existing process

This doesn't happen in a project on Windows, only on WSL

To Reproduce

  1. Create empty create-react-app project
  2. npm run start
  3. Set a breakpoint anywhere
  4. Open page in browser
  5. Remove breakpoint
  6. Reload page

Log File
vscode-debugadapter-0.json.gz

VS Code Version: 1.52.0-insider, the same thing happened on earlier versions

@jabuj jabuj added the bug Issue identified by VS Code Team member as probable bug label Dec 2, 2020
@connor4312
Copy link
Member

Thanks for the bug, duplicates #597

@connor4312 connor4312 added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants