Outputting "Watch" value in Eclipse to log file

I have a piece of Java code that I cannot edit that I want to debug.

The problem is that one of my 10,000 records has a data error and is causing the application to crash.

I can remotely debug the current application and add a clock that will display the post ID as each one is processed. The problem is that the "bad write" processing is being handled and the method is out of the value stored in the clock is lost, so I don't know which entry was causing this problem.

Is there a way to store / print the value stored in hours

thank

+1


source to share


2 answers


If a bad write is causing your application to crash by throwing an exception, try putting a breakpoint on that exception, and perhaps the write information will still be available in that method's stack frame. Haven't tried this, just a thought. Good luck.



+1


source


Maybe yu can trigger its own modified eclipse using the watchExpressionDelegates of the extension point .

Your class that will implement this delegate class org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate

may be able to do whatever it wants, including registration information.



I haven't tested it, but if you successfully implement it, please let us know.

0


source







All Articles