简体   繁体   中英

Debugger doesn't stop at source code in Intellij IDEA

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 .

The thing that fixed my issue (same description) was to synchronize the sources. See screenshot below:

在此输入图像描述

I also did invalidate caches/restart but there was no positive result.

In my case the application process stopped but IDEA didn't catch the breakpoint. The solution was to click pause debugger while process was freezed:

在此输入图像描述

就我而言,我正在调试一个单元测试,并且模拟了带有断点的类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM