I cannot step into source for a dependent module during tomcat debug session.
I'm not sure this is a result of the way I have modules configured or a bug in IntelliJ 9.0.2. I did have this working in past (non-Artifact) versions so I suspect this is related to either Artifact setup or maybe Dependency Scope.
During tomcat debug, when I step into a class located within a dependent module, it does not go to module source; it steps into the decompiled jar file and claims "source not found." If I ctrl-click the method call, it brings me to source as expected. In webapp module config, I have the dependencies in the correct order: the module dependency comes before the jar library.
I've tried several variations within the Dependencies config: ticking and unticking Export, changing Scope from Compile to Runtime to Provided. I don't think these settings should matter anyway, although I must confess confusion over the Export checkbox. Side question: what does the Export checkbox really control?
My project is relatively complicated with several tomcat-based webapp modules and common library modules. For example, here are modules: webapp1, webapp2, webcore, core. webapp1 depends on webcore and core along with its own module library containing both 3rd party jars AND packaged jars for both webcore and core. Same for webapp2. webapp1 does not depend on webapp2 and vice-versa.
For webapp1 module, the Dependencies look like the following, in order:
core a module dependency with Scope=Provided.
webcore a module dependency with Scope=Compile
webapp1-lib a module library with Scope=Compile. Contains jar directories of 3rd party jars and the jars of both core and webcore.
Tomcat an app server library with Scope=Provided. Contains lib jar directories for installed Tomcat 6 and some custom container libs, such as jstl-1.2.jar.
When I debug "webapp1" as a tomcat instance, I have several breakpoints in the webapp1 code and the webcore code. When I stop in a webapp1 class at a call into a webcore class, if I step into the webcore class's method, it takes me to the jar located in webapp1-lib and not the source located in module "webcore."
This project/module config used to work in older versions of IntelliJ 9.
I appreciate any pointers on this type of issue or if this is a known bug. Thanks.