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

Error when trying to set a breakpoint in index.html #1028

Closed
rinselmann opened this issue Jun 11, 2021 · 0 comments
Closed

Error when trying to set a breakpoint in index.html #1028

rinselmann opened this issue Jun 11, 2021 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@rinselmann
Copy link
Contributor

Describe the bug
When I try to set a breakpoint in a project that contains only an index.html file served from the filesystem, I get the following error: Error processing setBreakpoints: SyntaxError: Invalid regular expression

To Reproduce
Steps to reproduce the behavior:

  1. Create new vscode project containing an index.html file with a script block
  2. Create a launch configuration to open the index.html file using path
  3. Start a debugging session
  4. Try to set a breakpoint in index.html
  5. See Error

VS Code Version: 1.56.2

Additional context
I believe this is due to urlToRegex incorrectly handling paths that are partially pre-escaped, which happens if the path ends with index.html. I have a fix that I'm planning on submitting a pull request for.

@rinselmann rinselmann added the bug Issue identified by VS Code Team member as probable bug label Jun 11, 2021
@connor4312 connor4312 added this to the June 2021 milestone Jun 11, 2021
@TylerLeonhardt TylerLeonhardt added the verified Verification succeeded label Jun 30, 2021
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants