Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
up ? Sad
Previous Topic:Unable to create new project in Eclipse - URGENT HELP!!
Next Topic:ViewStack overlap to the editor
Goto Forum:
  


Current Time: Sun Aug 31 13:41:45 EDT 2025

Powered by FUDForum. Page generated in 0.03881 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top