调试器不会停止在Intellij IDEA的源代码中 [英] Debugger doesn't stop at source code in Intellij IDEA

查看:120
本文介绍了调试器不会停止在Intellij IDEA的源代码中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很奇怪的问题,我无法用Intellij IDEA解决。我正在使用 org.apache.james.mime4j 包解析电子邮件文件,但我的邮件文件格式不兼容 Date:标题。所以我从mime4j源创建了模块,并从我的磁盘中删除了mime4j jar。



我找到了一个解析发生的地方。当我把 System.out.println(Something)在那里,我看到它在我的控制台。但是当我在println的线上放置一个断点时,它不会停止。 (但它停在我的 main()函数)。



你有什么想法为什么会这样吗?我已经使我的缓存失效我使用IDEA 11.1.2。

解决方案

IDEA可能会缓存您的jar并使用缓存副本,仔细检查模块依赖关系,应该没有jar依赖,只有对模块的依赖关系来源。



另请尝试文件 无效缓存


I've rather strange issue that I can't resolve with Intellij IDEA. I was parsing email file with org.apache.james.mime4j package but my mail file had incompatible format of Date: header. So I created module from mime4j sources and removed mime4j jar from my disk.

I've found a place where parsing happens. When I put System.out.println("Something") there, I see it in my console. But when I put a breakpoint right on println's line it doesn't stop. (But it stops in my main() function).

Do you have any idea why this can happen? I've invalidated my cache. I use IDEA 11.1.2.

解决方案

IDEA may cache your jar and use a cached copy, double check the module dependencies, there should be no the jar dependency, only the dependency on the module containing sources.

Also try File | Invalidate Caches.

这篇关于调试器不会停止在Intellij IDEA的源代码中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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