dotnet/roslyn

Hovering over cast evaluates property value in debugger

Open

#33,252 opened on Feb 8, 2019

View on GitHub
聽(0 comments)聽(0 reactions)聽(0 assignees)C#聽(20,414 stars)聽(4,257 forks)batch import
Area-InteractiveBugInteractive-Debugginghelp wanted

Description

Version Used: Visual Studio 2019 Preview 2

馃敆 Originally filed as https://devdiv.visualstudio.com/DevDiv/_workitems/edit/233955

Steps to Reproduce:

  1. Create a new WPF application

  2. In the main window constructor, add the following:

    BooleanToVisibilityConverter converter = new BooleanToVisibilityConverter();
    Visibility x = (Visibility)converter.Convert(true, null, null, null);
    
  3. Set a breakpoint on one of the lines above

  4. When the breakpoint is hit, hover over the (Visibility) type cast

Expected Behavior:

Quick Info is not shown (default behavior for hovering over a type while debugging).

Actual Behavior:

Quick Info shows the value of this.Visibility (default behavior for hovering over a property while debugging).

Contributor guide

Hovering over cast evaluates property value in debugger 路 dotnet/roslyn#33252 | Good First Issue