DonationCoder.com Forum
Main Area and Open Discussion => Living Room => Topic started by: Josh on January 01, 2013, 11:01 AM
-
OK, crazy question, but is there some trick to debugging a project in Eclipse? Ideally, I would like to start my code in debug mode and step through it without the need for breakpoints. Right now, when I set a breakpoint, some applications generate "Class Not Found Exceptions" and others generate "Thread.exit() not found" at the close of the application, despite running fine when executed normally, with appropriate results.
Is there some trick to debugging in Eclipse?
-
Don't have a good answer for you, but I'd like to know what's going on.
Here is what came up from a search:
http://www.popcornfarmer.com/gamedev/2009/01/eclipse-debug-error/
http://www.eclipse.org/forums/index.php?t=msg&th=174522&start=0
http://stackoverflow.com/questions/4525334/debug-in-eclipse-classnotfoundexception
Perhaps you already found those, but FWIW.
On a side note, came across the following tutorial on debugging in Java:
http://www.vogella.com/articles/EclipseDebugging/article.html
Again, may be you're familiar with it, but FWIW.
-
BTW, I tried creating the Hello World program mentioned in:
Getting Started with Eclipse (http://www.cis.upenn.edu/~matuszek/cit591-2004/Pages/starting-eclipse.html)
and managed to run it under Eclipse's (3.8.0) debugger with no problems -- with a breakpoint set at the line "System.out.println("Hello World");".
Does that work for you?
-
ewemoa, thanks for the replies. I have solved my issue with debugging. Apparently, for debugging to work as I want it to, I have to enable step filters and filter out all java libraries from the debug process. By default, source files are not included for Java and as such, results in the error messages I was encountering. There was never a problem with my code, just that eclipse could not find the source for the JDK.
Below is a screenshot of the settings that need to be enabled to get rid of these error messages.
[ You are not allowed to view attachments ]
-
Glad to hear you got things working :)
Thanks a lot for the update :up:
-
Why do people still use eclipse instead of the superior IntelliJ platform?
-
Why do people still use eclipse instead of the superior IntelliJ platform?
-Tuxman
Maybe it's the $200 US price tag. That's a bit steep when there are freebies available to do much the same thing, doncha thimk? Yeah, it's free for open source development, according to JetBrains (http://www.jetbrains.com/idea/buy/index.jsp), but just how do they define open source? I've seen some pretty iffy offers from JetBrains, and their support, at least in my experience, has been less than stellar.
-
I never needed support for eclipse, so I can't really tell much about the difference here.
-
Honestly, I am contemplating a move to Oracle's JDevelop. It is far superior in terms of usability. I am holding off until the release of 12c with mobile support built in. Right now, you have to install ADT and a few other things to get mobile support, and even then it is kind-of clunky.
-
IDEs mostly written in slow Java make me puke. Generally. (I wonder what IntelliJ is built upon.)
Never seen a good application starting with a capital J.
edit:
JDeveloper, not JDevelop, right?
-
IDEs mostly written in slow Java make me puke. Generally. (I wonder what IntelliJ is built upon.)
Never seen a good application starting with a capital J.
edit:
JDeveloper, not JDevelop, right?
-Tuxman
Po-tat-o, Po-tot-o
-
Could you elaborate on that?