Eclipse 调试中不支持运行到断点问题
本学期以来,我到后面,我经常遇到一个问题就是,调试的时候,经常从什么
URLClassPath.getLoader(int) file
这些个内部的函数地方就一直是suspend了.也就是不直接进行断点啊.于是我就不停的迠
F6或者.F8(resume).
其实一开始主要是在调试Web程序时出现的.当时用tomcat,他也一直在这些个地方停了下来.
我非常不爽.但是没有办法,还是想调试.
于是不停的F6,到手都麻了.
到后来也是一样.我晕啦.
如果是大的项目的话,那个Debug时按F6和F8得按十多分钟啊.
我还是算有耐心了.
后来我百度了下,Google也下,用什么Eclipse调试, 进不了断点.结果可想而知.
找不到什么东西 ,因为我这文还没有出来.
到了今天我实现受不了,换用出现常出现的上面那句话来Google.
再加点关键词,如下:
This is a follow-up to the posting "Unexpected breakpoint in debugger". Ididn't find a bug report as was suggested in the posting.When I run my program normally, everything is fine. But when I run in thedebugger, I get the error below. I've tried changing the option with noeffect: Window>Preferences>Java>Debug>Suspend execution on uncaughtexceptionsThe problem seems to happen in cases where a class is instantiated fromanother branch in the source tree or in a different project or from a jar.It works if all the classes are in the same project and location.Setup:Eclipse 3.2.0 using JRE 1.4.2Windows XP ProHas anyone else run into this?Thanks,KeithThread [main] (Suspended (exception FileNotFoundException))URLClassPath$JarLoader.getJarFile(URL) line: 576URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 545URLClassPath$3.run() line: 323AccessController.doPrivileged(PrivilegedExceptionAction) line: notavailable [native method]URLClassPath.getLoader(URL) line: 312URLClassPath.getLoader(int) line: 289URLClassPath.getResource(String, boolean) line: 159URLClassLoader$1.run() line: 191AccessController.doPrivileged(PrivilegedExceptionAction,AccessControlContext) line: not available [native method]Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289Launcher$AppClassLoader.loadClass(String, boolean) line: 274Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235Launcher$AppClassLoader(ClassLoader).loadClassInternal(Strin g) line: 302DebugClass.foo() line: 13DebugTest2.doSomething() line: 17DebugTest2.main(String[]) line: 10
原回答如下:
In the Breakpoints view, do you see any listed? Use the "XX" button toremove all breakpoints - it is possible you inadvertently created anException breakpoint, which will break any time the exception is thrown.Hope this helps,Eric后来这个发贴人说问题解决了.回复如下.1 楼 langyu 2011-07-14 里面的断点谁加的?Yes, clearning out the Breakpoints worked, Thanks!
然后我试了下,果然如此.真是太高兴了.
要知道,我也折腾了很久啊..