Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugger only stops at breakpoints, will not "step over"

I'm trying to debug code that I've built from source. It is started with the wrapper from Tanuki.

I'm debugging inside IntelliJ idea but I'm not sure that is the problem.

The debugger correctly stops at all lines where I've put a break point but never else so F8, "step over" doesn't work. Very tiresome as I have to put break points every where :)

Am I doing something wrong?

like image 319
Andreas Wederbrand Avatar asked Jan 13 '12 12:01

Andreas Wederbrand


2 Answers

How do you build the project? If you build it with Ant or some other tool, make sure that compilation is performed with debug info enabled (debug=true for Ant javac task). Obfuscation and bytecode instrumentation during the build can also affect the possibility to debug. If you run under some non-standard JVM, it may also cause such problem.

When performing remote debug, ensure the target process is started with the correct JVM options suggested in the IntelliJ IDEA Remote debug configuration. Your wrapper configuration may pass them incorrectly.

like image 106
CrazyCoder Avatar answered Oct 03 '22 08:10

CrazyCoder


Make sure you don't have a different jar on the classpath (other than the project) with the same classes. You could be stepping through the compiled classes and "breakpointing" in the sources.

like image 38
Mircea D. Avatar answered Oct 03 '22 07:10

Mircea D.