Hi all,
I'm currently using the eclipse tracing feature.
All works fine, and I'm able to trace some text in the trace.log file.
But now I'd like to trace directly in the console. So I've looked the writeRecord method in the EclipseDebugTrace class.
Then I saw that if the trace file is null the message will be logged in the console ( perfect that's what I was looking for !! ).
So, I did a
FrameworkDebugOptions#setFile(null)
but an NPE occurs, indeed see the setFile code :
public synchronized void setFile(final File traceFile) {
this.outFile = traceFile;
FrameworkProperties.setProperty(PROP_TRACEFILE, [b]this.outFile.getAbsolutePath()[/b]);
// the file changed so start a new session
EclipseDebugTrace.newSession = true;
}
If you look at bold code, you'll see that we cannot set a null value to the file ...
Is this a bug ?
Cheers,
JOnathan