ReSharper 2020.2 Help

Value Tracking

ReSharper | Inspect | Value Origin/Destination
ReSharper_DfaReachingDefinitionsUp / ReSharper_DfaReachingDefinitionsDown

Value Tracking helps you investigate value of a particular type and possibly determine how a certain incorrect value might have passed to a given point in your program, and where it might be passed next. This helps you investigate possible NullReferenceException, inappropriate behavior, and reasons why you get incorrect values.

Investigate member's value origins

  1. Place the caret at the name of a method, property, variable, field, and so on, whose value you want to investigate.

  2. In the main menu, choose ReSharper | Inspect | Value Origin or press Control+Shift+Alt+A and choose Value Origin in the Inspect This list.

  3. In the Inspection Results window that opens, you can investigate possible origins of the value.

    Value origin hierarchy in the Inspection Results window

Investigate member's value destinations

  1. Place the caret at the name of a method, property, variable, field, and so on, whose value you want to investigate.

  2. In the main menu, choose ReSharper | Inspect | Value Destination or press Control+Shift+Alt+A and choose Value Destination in the Inspect This list.

  3. The Inspection Results window opens where you can investigate possible destinations of the value.

    Value destination hierarchy in the Inspection Results window

If a node represents an element of a collection, it is marked with ThemedIcon DfaCollection Screen Gray png; if there is a lambda expression, it is marked with ThemedIcon DfaLambda Screen Gray png.

This feature is supported in the following languages and technologies:

Language: C#Language: VB.NETLanguage: C++Language: HTMLLanguage: ASP.NETLanguage: RazorLanguage: JavaScriptLanguage: TypeScriptLanguage: CSSLanguage: XMLLanguage: XAMLLanguage: ResxLanguage: Build ScriptsLanguage: ProtobufLanguage: JSON
Feature is available in C#Feature is not available in Visual Basic .NETFeature is not available in C++Feature is not available in HTMLFeature is not available in ASP.NETFeature is not available in RazorFeature is not available in JavaScriptFeature is not available in TypeScriptFeature is not available in CSSFeature is not available in XMLFeature is not available in XAMLFeature is not available in Resource filesFeature is not available in build script filesFeature is not available in ProtobufFeature is not available in JSON
Last modified: 21 August 2020