Bug 49787 - Debugger gets confused when Variable/Property name is same as Class name of something else
Summary: Debugger gets confused when Variable/Property name is same as Class name of s...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.3
Assignee: Joaquin Jares
URL:
Depends on:
Blocks:
 
Reported: 2016-12-13 09:48 UTC by michiel.hegemans+xamarin
Modified: 2017-07-19 09:14 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Hover-over debugger is confused (17.49 KB, image/png)
2016-12-13 09:48 UTC, michiel.hegemans+xamarin
Details
Attaching logs,detail output and screenshot generated during verification (109.51 KB, application/zip)
2017-03-21 13:59 UTC, Prasad Raghorte
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description michiel.hegemans+xamarin 2016-12-13 09:48:40 UTC
Created attachment 18865 [details]
Hover-over debugger is confused

When inspecting variables or properties in the debugger (In Visual Studio) that have the same as a class the debugger gets confused and simply shows that it is a class, instead of the details of that variable or property.

An example of where this often happens is inside Custom Renderers where the current element being rendered is stored in the property 'Element'. Which has the same name as 'Xamarin.Forms.Element', as you can see in the screenshot. The Locals inspector however does have the correct value for 'Element' which is in this case a 'Xamarin.Forms.Platform.iOS.IVisualElementRenderer'.

You may think it's related to the fact that IVisualElementRenderer is a subclass of Xamarin.Forms.Element, but that is unrelated to the problem. The same thing happens if I make a property named 'Buffer' for example, which can be of type int, then it will still grab 'System.Buffer' inside the inspector.

Visual Studio version:   14.0.25431.01 Update 3 (Enterprise 2015)
Xamarin version:         4.2.1.58 (3e1ef9e)
Xamarin.iOS version:     10.2.1.5 (ee931ae)
Xamarin.Android version: 7.0.2.37 (ce955cc)
Comment 1 Joaquin Jares 2017-01-13 12:58:02 UTC
This bug is fixed in our next release. Marking as Resolved for verification.
Comment 2 Saurabh Paunikar 2017-03-21 08:01:29 UTC
Hi Joaquin,
Can you please provide me more details about the build in which issue is fixed.
Comment 3 Prasad Raghorte 2017-03-21 13:59:55 UTC
Created attachment 20522 [details]
Attaching logs,detail output and screenshot generated during verification

Hi Joaquin,

As discussed,I am reopening this issue.Please note that I observed same issue on VS 2017.

Verified in following configuration


Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA436
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2015   00322-80000-00000-AA436
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-80000-00000-AA436
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA436
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA436
Microsoft Visual C++ 2015

Visual F# 2015   00322-80000-00000-AA436
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - PLK   00322-80000-00000-AA436
Windows Phone SDK 8.0 - PLK

Application Insights Tools for Visual Studio Package   7.18.00214.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   2.2.0.8
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.14-alpha (21c13c9)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2015 ENU   14.0.23025
Microsoft Office Developer Tools for Visual Studio 2015 ENU

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio   2.2.50113.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.50113.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.50113.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.4.0.6 (eeb1b63)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.2.0.6 (b8e3884)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.8.0.26 (0e9e791)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Saurabh Paunikar 2017-03-21 14:03:32 UTC
Reopening as discussed
Comment 6 Neeraj Deshmukh 2017-07-19 09:14:03 UTC
Verified on Microsoft Visual Studio Enterprise 2017 d15rel
Gist: https://gist.github.com/mohakbarokar/7013bf081e6651668c41742d51b6cbf6