I try to figure this out a bit without resorting to the right approach. I read this question that I have already tried, but it does not work completely correctly. Using IntelliJ EAP 142.4675.3
What I'm trying to do is debug the junit test using jar (an extension of the Provider class), which I put in JAVA_HOME \ jre \ lib \ ext. I want this jar to be debugable too.
The problem is that if I attach the source directory as the source for jar, then in the stack trace, when I click on the named file (containing the method I want to view), IntelliJ asks me to choose between two from the same file, apparently , because he knows about the source (he is in the module in my project), and also talked about the source through the jar source path that I added.
I tried adding the provider.jar parameter to the dependencies tab of the project module, which caused bewilderment. Returning back to the jre \ lib \ ext folder, and on the "Platform Settings-> SDKs-> 1.8-> Sourcepath" tab, I added the path to the module source code. This allows intellij to go to the .java file for jar, as well as the .class file, but when it does, now I get a banner at the top of my code window that says: "Alternative source available for class xxx" and there is RHS combo box with the module name listed twice (in the last EAP, it actually lists the module and the bank [same name as the module, with .jar]). And, as mentioned earlier, the IDE asks which file (of the same) I want to change when I click on the file in the stack trace.
, - . ? , , , , , , .