Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse DEBUG Logs(How to enable Debug Logs from JDT in Eclipse)
Eclipse DEBUG Logs [message #1754186] Wed, 15 February 2017 07:17 Go to next message
Suresh P is currently offline Suresh PFriend
Messages: 23
Registered: May 2013
Junior Member
hi,

How to enable DEBUG logs in Eclipse and where to view the log contents.

For example, in org.eclipse.jdt.internal.core.builder.JavaBuilder class, there are lot of LOG statements which is printed if the variable "DEBUG" is true as shown below.

if (DEBUG)
        {
          System.out.println("JavaBuilder: New location: " + newBinaryLocations[n] + "\n!= old location: " + oldBinaryLocations[o]);
          printLocations(newBinaryLocations, oldBinaryLocations);
        }


Thanks
Re: Eclipse DEBUG Logs [message #1754998 is a reply to message #1754186] Sat, 25 February 2017 17:51 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1504
Registered: July 2009
Senior Member
When running Eclipse with "-debug yourOptionsFile" the following options control the logging you are seeing:
org.eclipse.jdt.core/debug
org.eclipse.jdt.core/debug/builder


See http://help.eclipse.org/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html and http://help.eclipse.org/topic/org.eclipse.pde.doc.user/guide/tools/launchers/tracing.htm
Previous Topic:uninstall eclipse features by command line
Next Topic:Javac cannot infer type from lambda body but ECJ does
Goto Forum:
  


Current Time: Sun Sep 24 19:39:18 GMT 2017

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

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