-
Notifications
You must be signed in to change notification settings - Fork 348
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
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:
- Create new vscode project containing an index.html file with a script block
- Create a launch configuration to open the index.html file using
path - Start a debugging session
- Try to set a breakpoint in index.html
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded