简体   繁体   中英

Debugging in eclipse . Extract variables to excel sheet

Am debugging my application using eclipse. I have a list which has 100 objects within it. I need to extract the values of those hundred objects in to an excel sheet in debug-window and i should compare. Is there anyway in eclipse I can do it while debugging ??

Right now, I wrote a program which will write in to an excel and am doing it which is very painful as I have to delete that code before moving it to production.

It would be good, if the debug plug-in itself has an option for this . can this be done ?

This will reduce our analysis timing

You can execute code during debug in eclipse Display View Go to Window -> Show View -> Display View

You can write code to see the value of the expressions during debugging, you should be able to write code to extract values into excel.

If your issue is that you have to remove the code before going in to production then a simple way to avoid this is to use the log levels for your logger. For example:

if (logger.isDebugEnabled()) {
  // Your debug code
}

In your production code your log level is above debug , so the code won't be called.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM