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.
Terminate a debugger sessionClick the Stop button in the Debug tool window. Alternatively, press Ctrl+F2 and select the process to terminate (if there are two or more of them).
To solve this, simply remove the jar of the debugged module from all modules' dependencies in the Project Structure. If you do not know which modules have the debugged module jar as dependencies, you can use some tools (Eg. Sublime Text, bash, ...) to search for the module name which is stored in Intellij *.
You can run a process with ⌃R (macOS), or Shift+F10 (Windows/Linux). To stop a process, you can use ⌘F2 on macOS, or Ctrl+F2 on Windows/Linux.
The thing that fixed my issue (same description) was to synchronize the sources. See screenshot below:
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With