eclipse不进入断点_Eclipse 调试中不支持运行到断点问题

引用

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.(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

分享到:

2011-07-13 16:03

浏览 8014

评论

1 楼

langyu

2011-07-14

里面的断点谁加的?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值