ReSharper 2017.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.

To investigate member's value origins

  1. Place the caret at the name of a method, property, variable, field, etc. whose value you want to investigate.
  2. In the main menu, choose ReSharper | Inspect | Value Origin or press Ctrl+Shift+Alt+A and choose Value Origin in the Inspect This drop-down 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

To investigate member's value destinations

  1. Place the caret at the name of a property, variable, field, etc., whose value you want to investigate.
  2. In the main menu, choose ReSharper | Inspect | Value Destination or press Ctrl+Shift+Alt+A and choose Value Destination in the Inspect This drop-down 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 ; if there is a lambda expression, it is marked with ThemedIcon DfaLambda Screen Gray .

This feature is supported in the following languages and technologies:

Language: C# Language: VB.NET Language: C++ Language: HTML Language: ASP.NET Language: Razor Language: JavaScript Language: TypeScript Language: CSS Language: XML Language: XAML Language: Resx Language: Build Scripts Language: Protobuf Language: JSON
Feature is available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available
Last modified: 14 December 2017

See Also