Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Bug in FrameworkDebugOptions#setFile ?
Bug in FrameworkDebugOptions#setFile ? [message #799178] Wed, 15 February 2012 10:56 Go to next message
Jonathan  is currently offline Jonathan
Messages: 15
Registered: July 2011
Junior Member
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 Smile !! ).

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

Is this a bug ?

Cheers,
JOnathan
Re: Bug in FrameworkDebugOptions#setFile ? [message #805898 is a reply to message #799178] Fri, 24 February 2012 04:16 Go to previous message
Jonathan  is currently offline Jonathan
Messages: 15
Registered: July 2011
Junior Member
up ? Sad
Previous Topic:Unable to create new project in Eclipse - URGENT HELP!!
Next Topic:ViewStack overlap to the editor
Goto Forum:
  


Current Time: Fri Aug 22 21:41:55 EDT 2014

Powered by FUDForum. Page generated in 0.01542 seconds