无法在日食中放置断点 [英] unable to place breakpoints in eclipse

查看:122
本文介绍了无法在日食中放置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用JDK 1.6.0_18(32位)的Windows Vista Vista 64位上使用eclipse europa(3.5)。

I am using eclipse europa (3.5) on windows vista home premium 64-bit using JDK 1.6.0_18 (32 BIT).

通常情况下,放断点就好了但是,对于不是项目一部分的特定类(此类是.JAR文件(.JAR文件是项目的一部分)),虽然我已将源目录附加到此.JAR文件中,但我无法在这个类中放置一个断点。

Normally, I am able to put breakpoints just fine; However, for a particular class which is NOT part of the project (this class is inside a .JAR file (.JAR file is part of the project) ), although I have attached a source directory to this .JAR file, I am unable to place a breakpoint in this class.

如果我双击断点窗格(左边框),我注意到放置了一个类断点。我想知道是否有没有调试信息;但是,发现这个特定的类是使用debug =true和debuglevel =lines,vars,source使用ant / javac任务编译的。我甚至在这个类上运行jad,以确认它确实包含调试信息。

If I double-click on the breakpoint pane(left border), I notice that a class breakpoint is placed. I was wondering if there was NO debug info; However, found that this particular class was compiled using ant/javac task using debug="true" and debuglevel="lines,vars,source". I even ran jad on this class to confirm that it indeed contained the debug info.

那么为什么eclipse阻止我放置断点?

So, why is eclipse preventing me from placing a breakpoint ?

编辑:所有人都明白上下文,这是一个运行在tomcat 6.0下的webapp。在外部启动tomcat之后,我从eclipse远程调试应用程序。应用程序正常工作。我试图理解上述类的行为,我无法做,因为eclipse不让我设置一个BP。

EDIT : Just so everyone understands the context, this is a webapp running under tomcat 6.0. I am remote debugging the application from eclipse after having started tomcat outside. The application is working just fine. I am trying to understand the behavior of the above class which I'm unable to do since eclipse is not letting me set a BP.

PS:我看到一些线程这里谈论BPs没有被击中,但在我的情况下,我无法放置BP!

P.S : I saw a few threads here talking about BPs not being hit but in my case, I am unable to place the BP!

PPS:在尝试1.6.0_18之前,我尝试过JDK 1.6.0_16。

P.P.S : I tried JDK 1.6.0_16 before trying out 1.6.0_18.

感谢任何指针。

推荐答案

在您的配置中Java-> debug->步骤过滤
有时它已启用,您无法在已过滤的包中停止

Try to take a look at your configuration Java->debug->Step filtering sometime its enabled and you cannot stop inside a filtered package

这篇关于无法在日食中放置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆