vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Breakpoints can be set up in invalid places😱

Open cateyes99 opened this issue 2 years ago • 1 comments

Environment data

dotnet --info output: VS Code version: 1.67.2 C# Extension version: 1.25.0

Steps to reproduce

  1. Open a C# project .cs file.
  2. 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. image

cateyes99 avatar Jun 14 '22 04:06 cateyes99

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.

gregg-miskelly avatar Jun 16 '22 20:06 gregg-miskelly