vscode-csharp
vscode-csharp copied to clipboard
Breakpoints can be set up in invalid places😱
Environment data
dotnet --info
output:
VS Code version: 1.67.2
C# Extension version: 1.25.0
Steps to reproduce
- Open a C# project .cs file.
- Set up some breakpoints on comments, or blank lines.
Expected behavior
Should not allow to set up breakpoints in invalid places.
Actual behavior
Those invalid breakpoints are set. Even they get moved to the next closest valid places after starting to debug, and get restored after stopping debugging. It's very annoying.
This isn't possible today. I opened https://github.com/microsoft/vscode/issues/152388 as a VS Code feature request to make it possible for an extension to do something like this.