Skip to main content


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 15:56 Go to next message
Jonathan  is currently offline Jonathan Friend
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 09:16 Go to previous message
Jonathan  is currently offline Jonathan Friend
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 Apr 26 12:29:29 GMT 2024

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

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

Back to the top