aspose file tools*
The moose likes Java in General and the fly likes object information while executing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "object information while executing" Watch "object information while executing" New topic
Author

object information while executing

harry smith
Greenhorn

Joined: Oct 17, 2004
Posts: 1
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

Joined: Nov 20, 2003
Posts: 196
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
 
subject: object information while executing