dotnet / dotnet/vscode-csharp

Debug - Unable to hit a breakpoint for git modified files and other oddness

Open
#1,500 1 comment 3 reactions 0 assignees View on GitHub
Debugger OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data
```
dotnet --info
.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.10
OS Platform: Darwin
RID: osx.10.10-x64
```
VSCode Version: 2fbc979 Version 1.13.0-insider (1.13.0-insider)
C# Extension version: 1.9.0

## Steps to reproduce
Modify git source controlled file.
Save.
Set breakpoint.
Go to debugger - hit the "play" button to start debugging.
Notice that breakpoint is not hit.
Additionally, when hitting a breakpoint in a non-modified file, then stepping into the git-modified file finds the breakpoint highlight misplaced. This is recent behavior. It used to "work the right way" before.

![image](https://cloud.githubusercontent.com/assets/12577765/26269524/053b2d5e-3cc3-11e7-91b4-785c10a0d661.png)
![image](https://cloud.githubusercontent.com/assets/12577765/26269557/4bb24f6a-3cc3-11e7-93a3-d3e4060c1b00.png)

See Microsoft/vscode/issues/26846

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.