Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Eclipse plugins for heap browsing, navigating XML and making classdiagrams

Reply
Thread Tools

Eclipse plugins for heap browsing, navigating XML and making classdiagrams

 
 
Tom Anderson
Guest
Posts: n/a
 
      06-11-2008
Hi,

What i really, really want is an Eclipse plugin (or built-in facility i
haven't come across) for browsing the heap when debugging. At the moment,
all i have is the Variables view, which is nice if you're just looking at
what's happening in the local frame, but gets a bit gnarly if you want to
wander out into the heap, which i quite often do: you can twist the
triangles to see objects' fields, and so chase pointers to wherever, but
right now i'm looking at a field 19 layers down (partly due to a DOM
implementation which uses a linked list for children - i'm actually
drilling down to and then through an XML document), Eclipse is not super
happy about it, and it was an Indiana Jones-style struggle getting there
in the first place.

What i'd love is something that draws boxes and arrows, starting with a
box for 'this' (or the current stack frame) in the middle, with arrows
radiating out to the immediately pointed-to-objects, and where clicking on
one of those object would make that one expand into a rosette of
referents, etc. Plus labels on the boxes showing the class and ID, labels
on the arrows showing the field name, some way to collapse objects,
re-centre the view, rearrange the objects, and hide irrelevant pointers,
and smart handling of things like standard collections, so a Map appears
as a grid of keys and values, rather than the actual flotilla of objects
that makes it up (unless i want to see them).

Does anyone know anything like that?

The closest thing i know is the wonderful and fairly obscure Heap Analysis
Tool:

http://java.sun.com/javase/6/docs/te...hare/jhat.html

Which isn't graphical.

I also want an XML DOM browser plugin, so during debugging i can point at
a variable that contains an object which implements org.w3c.dom.Node (or,
ideally, a corresponding DOM4J etc interface) and say "show me the
structure of this document", and in return get a display that looks like

html
head
title "Gnarly Debugg0r Paeg"
body
div id="report"
initechSpecialSection
reportType "TPS"

etc. Anyone know of something like that?

Lastly, i want a plugin where i can point to a class, probably written by
someone else, and for which i may not have source or even javadoc, and say
"draw me a class diagram, like in UML or something, for this class and its
closest dependents". I'm certain these exist - can anyone recommend a
particular one?

tom

--
Gens una summus.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How much heap can I reserve for JVM? Error when allocation very much heap Raymond Schanks Java 0 04-11-2010 04:25 PM
export plugins and features in eclipse sheela_k Java 0 05-09-2009 06:48 AM
stl heap question: restoring heap validinty after changing 1 element viki C++ 6 06-28-2008 10:12 AM
Heap dump file size vs heap size Michal Slocinski Java 1 03-25-2008 12:54 PM
Is there plugins of the jclass available for eclipse ? Pawan Chhabra Java 0 09-25-2003 10:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57