Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has MyEclipse implicit breakpoint in debugging mode in class URLClassPath

Tags:

java

eclipse

I am beginner in MyEclipse IDEA. I using 8.6.1 version of it. My issue is: When I execute my program in debug mode, MyEclipse go to sun.misc.URLClassPath class and I must Resume breakpoint(by pressing F8 key) and continue executing my program. MyEclipse stay in URLClassPath class in following thread stack:

1. URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 581  
2. URLClassPath$JarLoader.ensureOpen() line: 631    
3. URLClassPath$JarLoader.getJarFile(URL) line: 641 
4. URLClassPath$JarLoader.ensureOpen() line: 631    

Note: this event happen when some jar file exist in my project Build-Path but when my application is simple this problem don't make and first breakpoint is my first breakpoint.

Why this event happened?

like image 368
Sam Avatar asked Mar 10 '12 08:03

Sam


1 Answers

I've reproduced the error and it is not possible to debug the application. The only way that I've found to fix this issue has been: go to "window->Preferences->Java->Debug" and disable the "suspend execution of uncaught exceptions"

Now is possible to debug the application and the debugger stops in the user breakpoints.

like image 142
Jorge Piera Llodrá Avatar answered Sep 27 '22 19:09

Jorge Piera Llodrá