Classpath problem when debugging

On the exciting topic of classpath...

I have a project setup with multiple modules. In each modules dependency tab, I include references to other modules, and underneath those I reference the jar counterpart for each module previously mentioned. I do this so that if developers have not retrieved all the source code, they can still build (the compiler will defer to the jar file).

The problem arises when you try and debug. Many times breakpoints will show the 'red x' as though they are invalid. This has something to do with the module boundaries, but I'm not exactly sure what.

Has anyone experienced this issue?

-Ken

2 comments
Comment actions Permalink


Ken Orr wrote:

On the exciting topic of classpath...

I have a project setup with multiple modules. In each modules dependency tab, I include references to other modules, and underneath those I reference the jar counterpart for each module previously mentioned. I do this so that if developers have not retrieved all the source code, they can still build (the compiler will defer to the jar file).

The problem arises when you try and debug. Many times breakpoints will show the 'red x' as though they are invalid. This has something to do with the module boundaries, but I'm not exactly sure what.

Has anyone experienced this issue?

-Ken


Please read this forum thread:

http://www.intellij.net/forums/thread.jspa?messageID=3429887

Pay attention to the post from Ryan Shillington ( Posted: Aug 9, 2005
10:56 PM), which says:

"... Go through all of your libraries, and make sure that the source
code in question is not in a jar that it is any of your libraries. I
repeat, the compiled class cannot be in a jar that is inside of a library."

In other words: debugging doesn't work well if the file you debug
appears one time as a source in the module and second time as a compiled
class inside a jar file, attached to the module.

Greetings!
George

0
Comment actions Permalink

Thanks for the quick response George! Thats the verification of the problem I needed.

-Ken

0

Please sign in to leave a comment.