This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object information while executing

 
harry smith
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, does anyone know how you get information of objects while a program is running. So you would have a running program, and another program would aquire information on object creations, attribute change, references(to other objects) and object deletion through the garbage collection. The whole purpose of this is to draw a object diagram in real-time, with changes such as references also happenign in real-time as a high-level view. I looked at reflections but i dont see how reflections can get object information(which can change) other than if it was in a running thread. Is it possible to access the VM that is used by the program to get the information or is there a simpler solutions. (What im doign is similer to creating a debugging program).

thanks for your help
 
Arnold Reuser
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that JPDA provides the architecture to build a debugger application.
SUN also provides a reference implementation.

Take a look at :

http://java.sun.com/j2se/1.4.2/docs/guide/jpda/architecture.html
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic