This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to save current state of variables in a flat file while debugging in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to save current state of variables in a flat file while debugging in eclipse" Watch "How to save current state of variables in a flat file while debugging in eclipse" New topic
Author

How to save current state of variables in a flat file while debugging in eclipse

csemanoj kumar
Greenhorn

Joined: May 11, 2008
Posts: 13
Hi,

I am using eclipse IDE for development. While debugging, I would want to save current state of variables in a flat file[or in xml/.xsl format] so that I can view the values offline.
Is there any way to do that?

Any help is highly appreciated...

Thanks,
Manoj Kumar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You can copy the variable values in the clipboard. In the Variables view, examine the variables you're interested in. Then, CTRL+A (Select All), and CTRL+C (Copy). This will copy all variables and their value in the clipboard. Otherwise, you can also check this plugin to export them in a file.


[My Blog]
All roads lead to JavaRanch
csemanoj kumar
Greenhorn

Joined: May 11, 2008
Posts: 13
Thank you. It really helped a lot.
 
 
subject: How to save current state of variables in a flat file while debugging in eclipse