Debug Referencing .class file an not source

In the latest build (1162) When I debug across modules, it will reference the .class files instead of the source files when in debug mode.

this is similiar to another posting that I saw and that one had said to re-build the project.

when I installed this last time I installed with a new system cache location and rebuilt the entire project. But I am still getting the problem.

Any ideas?

kmd

2 comments

Keith Davey wrote:

In the latest build (1162) When I debug across modules, it will reference the .class files instead of the source files when in debug mode.

this is similiar to another posting that I saw and that one had said to re-build the project.

when I installed this last time I installed with a new system cache location and rebuilt the entire project. But I am still getting the problem.

Any ideas?

kmd

I had this same problem, and finally figured out that it was my fault
for misconfiguring the project.

To summarize, my project contained ModuleA and ModuleB. When I debugged
ModuleA, I would only see the .class files from ModuleB, instead of
the expected ModuleB source. I had correctly informed the project that
ModuleA depends on ModuleB.

The problem turned out to be that I had mistakenly listed the "classes"
directory from ModuleB in ModuleA's "Libraries(Classpath)" tab. Since
there were no attached sources to that "classes" directory, IDEA decided
it didn't know anything about the source for those classes.
Essentially, it appears that IDEA first looks in the
"Libraries(Classpath)" list to try to find a class in the debugger,
then, only if it isn't found, it consults the module dependencies. When
I removed ModuleB's "classes" directory from the "Libraries(Classpath)"
list for ModuleA, everything worked fine.

Maybe this is your problem too?

- Danny

0

I have a similar problem. When I Ctrl-N, my .class files show up in the list. I had to add my classes directory as an "excluded" path. In 3.0 this was on my default. Not sure why this would be an included path. This could be related to your problem.

Jim

0

Please sign in to leave a comment.