简体   繁体   English

在Eclipse中使用Guava库时,为什么不调试工作?

[英]Why doesn't debugging work when using Guava libraries in Eclipse?

When I debug and the marker goes to the point to use Guava, the whole debugging session crashes. 当我调试并且标记到达使用Guava的点时,整个调试会话崩溃。 It says that no source attachment was found for Guava. 它说没有找到番石榴的来源附件。 How do I fix this problem? 我该如何解决这个问题?

In Eclipse 4.3.1 (probably in the older versions too): 在Eclipse 4.3.1中(可能在旧版本中):

  1. get the Guava source code (a source jar is available at Maven ) 获取Guava源代码( Maven提供源jar)
  2. in the Eclipse project explorer pane, look for the Guava jar 在Eclipse项目资源管理器窗格中,查找Guava jar
  3. right click on the jar file, select Properties 右键单击jar文件,选择Properties
  4. go to the Java Source Attachment tab 转到Java Source Attachment选项卡
  5. put the source jar from step 1 in the External location field 将源jar从第1步放入External location字段

That should allow Eclipse to find the source. 这应该允许Eclipse找到源代码。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当超时设置为 >= 1 秒时,Guava ratelimiter 不起作用 - Guava ratelimiter doesn't work when timeout set to >= 1 second 为什么番石榴不修剪? - Why guava doesn't trim | 为什么不“调试”调试对我的Eclipse 4.5.2起作用? (停用了步骤过滤器) - Why doesn't 'step into' debugging work with my Eclipse 4.5.2? (Step filters deactivated) 在JBoss上调试时,Eclipse不会自动连接源 - Eclipse doesn't automatically wire sources when debugging on JBoss 为什么在eclipse中调试jdk库,我看不到局部变量值? - Why debugging jdk libraries in eclipse, I can't see local variables values? Eclipse在使用“添加JAR”时找不到某些库,在使用“添加外部JAR”时找到了它们。 - Eclipse doesn't find some libraries when using “Add JARs”, does find them if using “Add external JARs” 使用接口时,为什么多态不能在泛型方法中起作用? - Why doesn't polymorphism work in a generics method when using an interface? 使用WebLogic 10.3.5远程调试Java Web应用程序时,SpringSource Tool Suite(基于Eclipse)不会在断点处停止 - SpringSource Tool Suite (Eclipse-based) doesn't stop at breakpoints when remote debugging Java Web Applications using WebLogic 10.3.5 我的游戏在 Eclipse 中运行良好,但在文本编辑器中不起作用(使用终端时使用 ubuntu)。 为什么? - My game works perfectly in Eclipse, but doesn't work in texteditor (ubuntu while using terminal). Why? Google Guava BiMap-反向获取方法不起作用 - Google Guava BiMap - inversed get-Method doesn't work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM