`
banxi1988
  • 浏览: 152105 次
  • 性别: Icon_minigender_1
  • 来自: 桂林
社区版块
存档分类
最新评论

Eclipse 调试中不支持运行到断点问题

    博客分类:
  • java
阅读更多
本学期以来,我到后面,我经常遇到一个问题就是,调试的时候,经常从什么
URLClassPath.getLoader(int) file
这些个内部的函数地方就一直是suspend了.也就是不直接进行断点啊.于是我就不停的迠
F6或者.F8(resume).
其实一开始主要是在调试Web程序时出现的.当时用tomcat,他也一直在这些个地方停了下来.
我非常不爽.但是没有办法,还是想调试.
于是不停的F6,到手都麻了.
到后来也是一样.我晕啦.
如果是大的项目的话,那个Debug时按F6和F8得按十多分钟啊.
我还是算有耐心了.

后来我百度了下,Google也下,用什么Eclipse调试, 进不了断点.结果可想而知.
找不到什么东西 ,因为我这文还没有出来.
到了今天我实现受不了,换用出现常出现的上面那句话来Google.
再加点关键词,如下:
引用

eclipse debug  URLClassPath.getLoader(int) file


结果在这个地方
[url]
http://www.eclipse.org/forums/index.php?t=msg&S=73b3719b575dd532260d1809694f886b&th=77485&goto=241565
[/url]

找到了一些简介.
就是因为,其它的项目有的断点.把那些断点去掉就可以了.

This is a follow-up to the posting "Unexpected breakpoint in debugger". I
didn'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 the
debugger, I get the error below. I've tried changing the option with no
effect: Window>Preferences>Java>Debug>Suspend execution on uncaught
exceptions

The problem seems to happen in cases where a class is instantiated from
another 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.2
Windows XP Pro

Has anyone else run into this?

Thanks,
Keith

Thread [main] (Suspended (exception FileNotFoundException))
URLClassPath$JarLoader.getJarFile(URL) line: 576
URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 545
URLClassPath$3.run() line: 323
AccessController.doPrivileged(PrivilegedExceptionAction) line: not
available [native method]
URLClassPath.getLoader(URL) line: 312
URLClassPath.getLoader(int) line: 289
URLClassPath.getResource(String, boolean) line: 159
URLClassLoader$1.run() line: 191
AccessController.doPrivileged(PrivilegedExceptionAction,
AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289
Launcher$AppClassLoader.loadClass(String, boolean) line: 274
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235
Launcher$AppClassLoader(ClassLoader).loadClassInternal(Strin g) line: 302
DebugClass.foo() line: 13
DebugTest2.doSomething() line: 17
DebugTest2.main(String[]) line: 10



原回答如下:
In the Breakpoints view, do you see any listed? Use the "XX" button to
remove all breakpoints - it is possible you inadvertently created an
Exception breakpoint, which will break any time the exception is thrown.

Hope this helps,
Eric

后来这个发贴人说问题解决了.回复如下.
Yes, clearning out the Breakpoints worked, Thanks!

然后我试了下,果然如此.真是太高兴了.
要知道,我也折腾了很久啊..


0
1
分享到:
评论
1 楼 langyu 2011-07-14  
里面的断点谁加的?
Global site tag (gtag.js) - Google Analytics