debugger fools me
IDEA 4.5.3 debugger is playing tricks on me:
sometimes on if statements with a single boolean, like
if (deleted)
{
doSome();
}
doOther();
while single stepping, IDEA correctly shows me that "deleted" is false, but on next F7 it steps to the
line doSome()
Lazy as I am, I often don't look at what value "deleted" has, but believe IDEA when it steps onto doSome() !!!
On next F7 IDEA does not step into doSome(), but continues - and I wonder what is wrong with method doSome() ??? Argggh!! ;)
Please check this - and if required I'll look if
it is reproducable with some simple code.
M.
Please sign in to leave a comment.
Michael,
IIRC, IDEA only jumps to the lines, which are stored as debug information of
the class file. I guess, you need to blame the javac to create stupid debug
information. BTW, this behaviour is identical with loop statements and inner
conditions.
Tom
thanks for the info - I'll examine the debug information
next time.
is there any known fix for that problem? some more
switches for javac maybe?
M.
Unfortunately, no. If I remember right, this should be fixed in jdk 1.5
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"