File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

object information while executing

harry smith

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 :
I agree. Here's the link:
subject: object information while executing
It's not a secret anymore!