Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I can't set a breakpoint in some of the Java source file (readonly source of plugin jar) in eclipse?

I'm tracing into eclipse LTK plugin. I could set a breakpoint in some of the readonly java source for LTK. (for example ProcessorBasedRefactoring.java)

enter image description here

However, I couldn't set a breakpoint in some source files. (for example JavaRenameProcessor).

enter image description here

When I tried to set a method breakpoint, I got "Cannot create method breakpoint, method signature not available." error message.

What might be wrong? Why I can't set a breakpoint in some of the (binary) Java source file? enter image description here

ADDED:

For a simple workaround to this issue, I just set a breakpoint wherever possible, and then open the java source to click a line. Then, I can use command-R so that eclipse executes up to the line that I point to.

ADDED2:

The breakpoint was there, but eclipse doesn't show it.

enter image description here

The other thing that I noticed was that the java file, just disappears from the IDE when I restart the debugger. And even when I reopen it in eclipse. enter image description here

I got this error message - "zip file closed". enter image description here

And then I can see the source code only when I trace into the method that the java source contains.

like image 511
prosseek Avatar asked Nov 03 '22 09:11

prosseek


1 Answers

I believe that the class is compiled without debug information and/or the byte code is obfuscated.

like image 74
AlexR Avatar answered Nov 08 '22 03:11

AlexR