Bug 11138 - Debugger unable to display value of a property
Summary: Debugger unable to display value of a property
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 3.0.x
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-03-13 19:12 UTC by softlion
Modified: 2013-08-05 12:53 UTC (History)
4 users (show)

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


Attachments
Sample project (repro) (64.59 KB, application/octet-stream)
2013-03-13 19:12 UTC, softlion
Details
bug, maybe not the same ? (68.37 KB, image/jpeg)
2013-03-15 04:47 UTC, softlion
Details
Unknown identifier in debugger (70.18 KB, image/jpeg)
2013-03-16 04:11 UTC, softlion
Details
proof that the variable is not null (see next screenshot for bug) (26.65 KB, image/jpeg)
2013-03-16 19:20 UTC, softlion
Details
The same kind of bug (21.23 KB, image/jpeg)
2013-03-16 19:22 UTC, softlion
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 or GitHub 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:
RESOLVED FIXED

Description softlion 2013-03-13 19:12:56 UTC
Created attachment 3607 [details]
Sample project (repro)

See attached sample project + screen capture.

Screen capture is inside the sample project at the root.
Comment 1 softlion 2013-03-13 19:15:18 UTC
In the sample project, add a breakpoint on tt1 line. Try to display the value of SomeValue. Result: "unknown member".
Comment 2 Jeffrey Stedfast 2013-03-14 12:41:23 UTC
The reason that SomeValue is an unknown member is because Model is null.

You need to initialize 'Model' first.

I guess the error could say that Model was null instead of saying that SomeValue is an unknown member.
Comment 3 softlion 2013-03-14 12:52:48 UTC
Well in this proof project this is true, but i will prove you this happens also on non null values, as i hit this bug everyday.
Comment 4 Jeffrey Stedfast 2013-03-14 13:05:28 UTC
I've committed a fix that reports "Model is null" instead of saying "Unknown member: SomeValue"

Do you have a test case where this happens for non-null values?
Comment 5 softlion 2013-03-15 04:47:53 UTC
Created attachment 3622 [details]
bug, maybe not the same ?
Comment 6 softlion 2013-03-15 04:48:32 UTC
I attached the same kind of bug, maybe not the same exactly.

The project is not a repro.
Comment 7 softlion 2013-03-16 04:11:23 UTC
Created attachment 3630 [details]
Unknown identifier in debugger
Comment 8 softlion 2013-03-16 19:20:00 UTC
Created attachment 3632 [details]
proof that the variable is not null (see next screenshot for bug)
Comment 9 softlion 2013-03-16 19:22:50 UTC
Created attachment 3633 [details]
The same kind of bug
Comment 10 Jeffrey Stedfast 2013-08-05 12:53:01 UTC
these all seem to be fixed in git master (about to be released as 4.1.9)