dotnet / dotnet/vscode-csharp

Breakpoints can be set up in invalid places😱

Open
#5,267 1 comment 0 reactions 0 assignees View on GitHub
Blocked on VSCode Debugger Feature Request OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

## 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](https://user-images.githubusercontent.com/19678455/173495061-e9eded2d-c7f9-42f8-b359-29521b94aad9.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.