Debugger intermittenly shows .class but not .java files - why?

i'm evaluating 4.0 build 1178 (running on xp home, 3.0 GHz PIV, 1.0 Ghz RAM). i've used v3.04 fairly extensively before now. in my experience with 3.04, i'd encountered many of the debugger bugs already listed in the tracker but just bit my tongue and lived with them.

now i've encountered this bug in 4.0 and wondered if it anybody else has run into it and if so, how can i sort it out?:

sometimes (sometimes not) when i run the debugger, instead of IDEA displaying the source code of the java file into which i've placed the breakpoints, it displays the class file view of the file instead. that is, instead of the little "j" icon to the left of the file name in the name tab, there is a "01" icon instead. and annoyingly, i cannot see the source code as i step through the debugger. what i see is the method signatures and the comment, "/* compiled code */" in place of the actual code.

this happens even though the class i'm debugging IS in fact in my project's source path and also even if i already have the java source file open when i run the debugger (or even if it's closed for that matter).

please tell me how i can prevent this. IDEA is a brilliant tool. i am as impressed with it - overall - as everybody else is. but when my evaluation period is up, i will feel very reluctant to fork over my dough considering some of the bugs that are present.

thanks in advance.

9 comments
Comment actions Permalink

p.s.

i'm running j2sdk1.4.2 if anybody's interested.

this: http://www.intellij.net/tracker/idea/viewSCR?publicId=27682 describes the same issue.

0
Comment actions Permalink

What do you mean by 'sometimes'? Is this bug reproduceable on some breakpoint or it depends on the particular start of a debugger session?

Is it possible for you to send your project to me, so I would try to reproduce the bug on my computer?

0
Comment actions Permalink

thanks for your reply, alexie. sorry, but i cannot send you my project. is there any other info (apart from my project) that i could send you that would help you figure out what the problem is?

by, "sometimes", i mean, "it doesn't happen everytime". only minutes before i encountered this bug, i had successfully ran the debugger and it functioned perfectly. minutes after that, this bug appears. maybe i added some lines of code to and recompiled the source that i was debugging, but nothing else changed.

i can not reproduce this bug at will. that is what i meant by "intermittently". it seems to happen unpredictably; for no apparent reason. there isn't any particular breakpoint(s) at which it occurs. sometimes the debugger works perfectly. sometimes it behaves in this strange way. sometimes the debugger just hangs and hangs; doing absolutly nothing when i'm stepping through code, but that's another post for another day.

i have only been using evaluation v4.0 build 1178 for this one project. so i've only encountered this problem with this one project and cannot say that this problem happens in every project. before, i've used version 3.0.4 and i did not encounter this particular bug in that version with this same project.

i will say again, i love idea! overall, intellij have produced a work of genius. but, let's be honest. it's not absolute perfection (what software is?). it's annoying little things like this (and the pain and confusion of configuring an ext ssh1 connection for cvs) that (for me anyway) make it extremely frustrating to work with - "sometimes".

i believe i have followed the setup/configuration instructions as they are prescribed in idea's documentation. maybe the problems i've encountered are because i've done something wrong or inadvertently missed a step. so i am asking for help from anyone who knows the software better than i do (maybe you have experienced this same problem) to point out what i may have done wrong.

thanks in advance.

0
Comment actions Permalink

Hi

I have also seen this problem on several occasions and I can not produce
it at will. But when after having the problem I do a rebuild of the
project it always removes the problem so it probably has something to do
with the caching of the class/java files between the
debugging/recompiling of classes.

Regards

Anders Holmbech Nielsen

william boyd wrote:

thanks for your reply, alexie. sorry, but i cannot send you my project. is there any other info (apart from my project) that i could send you that would help you figure out what the problem is?

by, "sometimes", i mean, "it doesn't happen everytime". only minutes before i encountered this bug, i had successfully ran the debugger and it functioned perfectly. minutes after that, this bug appears. maybe i added some lines of code to and recompiled the source that i was debugging, but nothing else changed.

i can not reproduce this bug at will. that is what i meant by "intermittently". it seems to happen unpredictably; for no apparent reason. there isn't any particular breakpoint(s) at which it occurs. sometimes the debugger works perfectly. sometimes it behaves in this strange way. sometimes the debugger just hangs and hangs; doing absolutly nothing when i'm stepping through code, but that's another post for another day.

i have only been using evaluation v4.0 build 1178 for this one project. so i've only encountered this problem with this one project and cannot say that this problem happens in every project. before, i've used version 3.0.4 and i did not encounter this particular bug in that version with this same project.

i will say again, i love idea! overall, intellij have produced a work of genius. but, let's be honest. it's not absolute perfection (what software is?). it's annoying little things like this (and the pain and confusion of configuring an ext ssh1 connection for cvs) that (for me anyway) make it extremely frustrating to work with - "sometimes".

i believe i have followed the setup/configuration instructions as they are prescribed in idea's documentation. maybe the problems i've encountered are because i've done something wrong or inadvertently missed a step. so i am asking for help from anyone who knows the software better than i do (maybe you have experienced this same problem) to point out what i may have done wrong.

thanks in advance.

0
Comment actions Permalink

In my case it happens every time. I'm on build 1182, Win2k.

However, I discovered that this is related to projects with more than module. Removing all modules except the one being debugged solved the problem (temporarily).

All modules are standard java modules. No fancy remote webapp-debugging or somesuch.

0
Comment actions Permalink

Ditto here. Doesn't only happen with .java and .class files, I've already complained before that when debugging JSPs, the wrong JSP to opens up when you hit a breakpoint. Sometime you get the 'original one', meaning the one in your actual jsp directory where your breakpoint is set, as opposed to the jsp in the exploded directory, other times you get both opened up with the breakpoint line highlighted in the exploded dir JSP, but the actual breakpoint is in the original JSP.

Very annoying, and doesn't happen on single module projects, just multiple webapp module projects.

R

0
Comment actions Permalink

I managed to solve this :)

My problem was that I had 2 java modules, which both referenced the same jars in the corresponding Module Libraries.

By extracting the common jars into a Project Library and only using the module specific jars in the Module library for each module the problem went away. It also solved a problem with 'Goto Implementations' ( Ctrl-Alt-B ).

0
Comment actions Permalink

That's great, but it's still a bug. No one should have to do what you did :)

R

0
Comment actions Permalink

Agreed.

BTW, the tracker-id for the Ctr-Alt-B problem is 30959, which is marked 'Unreproducable'.

0

Please sign in to leave a comment.