Bug 219 - in monotouch, I am in the debugger and am unable to inspect a list of objects
Summary: in monotouch, I am in the debugger and am unable to inspect a list of objects
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-07 18:21 UTC by Wally McClure
Modified: 2012-09-10 12:28 UTC (History)
6 users (show)

Tags: monotouch debugger gc inspecting objects
Is this bug a regression?: ---
Last known good build:


Attachments
example app to demo this issue. (1.32 MB, application/zip)
2011-08-07 18:21 UTC, Wally McClure
Details
Screenshot of issue (345.88 KB, image/png)
2011-08-07 18:34 UTC, Wally McClure
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 Wally McClure 2011-08-07 18:21:49 UTC
Created attachment 81 [details]
example app to demo this issue.

I have a linq query that I have performed.  I have forced it to go ahead and execute via calling .ToList<....>().  I have gone into the locals/watch window.  I have tried to drill down to the items into the list, and have received a message telling me that the item I am trying to look at have already been garbaged collected.  the objects are still around.  I am guessing that the debugger doesn't know that the query has actually been run, but that it is a personal opinion based on nothing more than a first guess. 

I am running:
mac OSX 10.6.8
MT 4.0.4.1
Monodevelop2.6b3

The error occurs in the simulator.  I suspect it would occur if debugging on the device, but I am unable to verify that at this time.
Comment 1 Wally McClure 2011-08-07 18:34:22 UTC
Created attachment 82 [details]
Screenshot of issue
Comment 2 Rolf Bjarne Kvinge [MSFT] 2011-08-08 10:39:06 UTC
=> MonoDevelop.
Comment 3 Jeffrey Stedfast 2011-08-23 17:50:26 UTC
It seems that _data is also a list full of GC'd items.

Btw, do you have a search string you typically use? I had to try a bunch of strings before I finally got one that got any results in 'test' (most of the time the test list would result in an empty list)
Comment 4 Jeffrey Stedfast 2011-08-23 18:24:43 UTC
have done a bit of digging and it seems that either MD is sending the debugger the wrong object id or else the debugger's get_object[_allow_null]() is broken somehow.
Comment 5 Jeffrey Stedfast 2011-08-23 19:20:47 UTC
it's gotta be something wrong with the way MD requests array info from sdb or a bug in the way sdb responds
Comment 6 Jeffrey Stedfast 2011-12-05 15:31:16 UTC
I can't reproduce this anymore in MonoDevelop 2.8.4, so I guess it's been fixed?

Wally, can you confirm?
Comment 7 Lluis Sanchez 2012-09-10 12:28:49 UTC
Closing.