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.
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?
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.