Bug 33665 - Debugger shows Unknown Identifier for Static/Constant values in Shared Libraries
Summary: Debugger shows Unknown Identifier for Static/Constant values in Shared Libraries
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 4.0.0 (C6)
Hardware: PC Mac OS
: High normal
Target Milestone: 4.3.0 (C9)
Assignee: Jose Gallardo
URL:
Depends on:
Blocks:
 
Reported: 2015-09-04 11:43 UTC by John Miller [MSFT]
Modified: 2016-12-27 17:50 UTC (History)
10 users (show)

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


Attachments
Test Case (315.04 KB, application/zip)
2015-09-04 11:43 UTC, John Miller [MSFT]
Details
Same issue in Xamarin Studio (412.05 KB, image/png)
2016-09-21 12:17 UTC, Marina
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 John Miller [MSFT] 2015-09-04 11:43:08 UTC
Created attachment 12755 [details]
Test Case

**Overview:**

   This is very similar to a previous issue in # 10918 except this seems to happen when using a Shared Library. The Class Library test project from # 10918 works OK, but the sample provided below does not work. 

**Steps to Reproduce:**

   1. Run the attached sample in VS.
   2. Set a breakpoint on line 18 of App.cs
   3. Deploy to an iOS simulator
   3. Inspect the field variables "TestStaticClass.*" while debugging.

**Actual Results:**

   The static fields show Unknown Identifier in the debugger/inspector.

**Expected Results:**

   Debugging/inspecting the variables should show the values. 

**Build Date & Platform:**

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Team Explorer for Visual Studio 2013   06177-004-0444002-02411
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02411
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02411
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02411
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02411
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02411
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02411
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

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

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

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

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

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

PowerShell Tools   1.3
Provides file classification services using PowerShell

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

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Xamarin   4.0.0.1111 (a1dc0d5)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.99.653 (cfa43bb)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.13.0.122 (2c6a530)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Rajneesh Kumar 2015-09-08 13:11:59 UTC
I have checked this issue and able to reproduce this. To reproduce this issue I have followed the steps and instruction provided in bug description. I observed that the static fields show Unknown Identifier in the debugger/inspector. Please refer the screen cast given below.

Screencast: http://www.screencast.com/t/ugyzlEvb

VS Trace Logs: https://gist.github.com/Rajneesh360Logica/d132c91dd3dce0f9b59d
Application Output: https://gist.github.com/Rajneesh360Logica/e4534dd9a5066a691404
Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.6.00079

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0447006-02413
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0447006-02413
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0447006-02413
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0447006-02413
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0447006-02413
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0447006-02413
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0447006-02413
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0447006-02413
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.5.60612.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Web Apps
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

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

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

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

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

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

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Packet.VisualStudio   1.0
Manage your Paket dependenciesFile from Visual Studio!

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

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

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

Xamarin   3.11.1414.0 (83d56c0)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.5.3 (f98871a95a479f6d71b3067b7e5834d41fcb2118)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.99.95.0 (7547e9fcc9e11697eaf7c6a5784a7290ac815a1c)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 2 Marina 2016-09-21 12:16:15 UTC
I am having the exact same issue in Xamarin Studio for Mac. Very time consuming because clean and rebuild doesn't work.
Comment 3 Marina 2016-09-21 12:17:10 UTC
Created attachment 17637 [details]
Same issue in Xamarin  Studio
Comment 4 Joaquin Jares 2016-11-30 15:24:28 UTC
This is now fixed in master.
Comment 5 Sunil Kumar 2016-12-06 15:24:28 UTC
Unable to verify this issue due to https://bugzilla.xamarin.com/show_bug.cgi?id=49095
Comment 6 Akhilesh kumar 2016-12-27 08:34:55 UTC
Hi @Joaquin,

I have worked on this bug with C9 and Master build. Below is my observation:

************************
C9 Testing status
************************

I have checked this issue with latest C9 XVS build and I am still observing this issue, getting Unknown Identifier in the debugger/inspector for static fields.

Screencast: https://www.screencast.com/t/jWvfp171O

C9 build: Xamarin.VisualStudio_4.3.0.502_3f3b98b2bd4aa28ec89f369bd63dda024b327e78

************************
Master Testing status
************************
Build:
Xamarin.VisualStudio_99.1.0.392_8d8edf11ec2a90e1ef8038c46167250513e9b366

I am observing that tooltip is not appearing and as per comment https://bugzilla.xamarin.com/show_bug.cgi?id=49095#c3 , the class will not yield any properties.

So is it the fix for Bug#33665? (i.e. the Static/Constant class will not yield any properties, that's why tooltip is not appearing)

If YES, then please merge this fix with master build, so that I can verify this issue with C9 builds(as with latest master build we are still getting this issue).

Thanks!
Comment 7 Akhilesh kumar 2016-12-27 10:17:38 UTC
Made some typo mistake in above comment:

>If YES, then please merge this fix with master build, so that I can verify this
issue with C9 builds(as with latest master build we are still getting this issue).

Please read it as:

If YES, then please merge this fix with *C9* build, so that I can verify this issue with C9 builds(as with latest master build we are still getting this issue).
Comment 8 Jose Gallardo 2016-12-27 16:17:57 UTC
Please verify on C9 build (4.3.0.503).
Thanks