Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Where can I find the "error history" in the console?
Where can I find the "error history" in the console? [message #1822715] Thu, 12 March 2020 02:21 Go to next message
Jiduan Wu is currently offline Jiduan WuFriend
Messages: 1
Registered: March 2020
Junior Member
I hope to find where the errors such as "Exception in the thread 'main' java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0" are recorded. Or can I create a file to record such information?

I have found the answer of "Finding the Error Log"(I can't understand the errors or find what I want) and "Retrieve Console History in Eclipse"(it just recorded the outputs, not the errors), these are not what I am looking for.

Thanks a lot!
Re: Where can I find the "error history" in the console? [message #1822738 is a reply to message #1822715] Thu, 12 March 2020 14:20 Go to previous message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 139
Registered: October 2018
Senior Member
Hi,

Is that error comes out from your own code ?

If this is the case:

You can use one of the many logging frame works.

For starter try the java.util.logging.Logger .

You can implement java.util.logging.FileHandler that will create a log file.

You can also use Thread.UncaughtExceptionHandler to catch UncaughtExceptionHandler .

Regards.


Previous Topic:Unable to run Java project
Next Topic:Maven/Dynamic Web project breaking when increasing DWM version
Goto Forum:
  


Current Time: Fri Mar 29 00:58:43 GMT 2024

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

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

Back to the top