Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object information while executing

 
harry smith
Greenhorn
Posts: 1
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic