Community
Participate
Working Groups
Now we seem to be able go get only to the parent, but for example if the Object is hold on to in a ArrayList then we see that it is hold on to an Object[] but that is not really useful, it would be much better if we could collapse the tree so that we see the ArrayList (that holds the Object[]) and then what object the ArrayList holds and so on.
I believe what you are looking for is already available in logical structures. Logical structures change the structure of variables to display more convenient information. Here is a blog talking about it: http://waynebeaton.wordpress.com/2007/03/27/show-logical-structure/ There already exists logical structures for lists. You can contribute your own via plugin.xml or on the Java > Debug > Logical Structures preference page.
No this has nothing to do with logical structures... The problem is that i see the structure (logical or not) of the objects that references the object i ask "All references" for For example i am in the debugger in the variables view i have "this" i click on "this" and then do "All references" then i get a popup dialog like a kind of outline view Where it says "this references from" and then the list/tree of all the objects that did reference the "this" object But when i collapse 1 item of that object, i get the logical or not view of that object, But that is not what i want to see (or what i only want to see) i want to see as a memory profiler, what is really referencing that object again Because the 1 level deep doesn't tell me anything. For example the first entry in that list/tree i have another object, if i expand that node then yes i see a entry that is my "this" entry. thats all fine, but now i want to know where that object is referenced. Because this 1 reference deep doesn't tell me much, i need to go to the GC Root.. (or at least way further down) to really see what object is really keeping a reference to my object where i ask "all references" on. Most of the time those intermediate objects are not important
We added support to display references in the variables view, rather than the popup. On the variable view menu, Java > Show References. If you want a complete map of the references for memory profiling, you are better off using a profiler such as YourKit.
yes i use profilers a lot but finding the references directly at debug time is sometimes very handy. The feature we now have is not really helpful at all, going one down/deeper is most of the time not really helpful. It is currently a bit possible i think by constantly inspecting the object that is a referring one again and then doing there the find reference again on. But it would be way nicer if that was just in the popup. So that we have besides the objects internals tree. Also a item that shows the references again of that object