dotnet / dotnet/roslyn

Value tracking window doesn't track setting to null value

Open
#75,485 0 comments 0 reactions 1 assignee Claimed by @tmat View on GitHub
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Value-tracking-window-doesnt-track-sett/10755736)._

---
\[severity:It’s more difficult to complete my work\]
The value tracking window doesn’t show entries in which a variable is set to null. For example, for this code:

```
internal class Program
{
public static string text;

private static void Main(string[] args)
{
text = "Meow";
text = "";
text = null;
}
}

```

If I right-click on the “text” field and select “Track Value Source”, the value tracking window shows the lines “text = “”;” and “text = “meow”;”, but not the “text = null;” one.

---
### Original Comments

#### Feedback Bot on 9/29/2024, 09:52 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

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.