intellij step over debugger steps out

Hello All,

First I am new to intelliJ and I am so impressed with it that I want my fellow devs to switch to it.  I create a new project and all my files were finally index.  I then created a new remote debug configuation and was able to attach successfully to my karaf server.  However when i break into code and i try to step over, it steps out into files for which I dont have the source for and has nothing to do with what i am debugging.  I first encountered this issue on 10.5 and was able to reproduce it on 9.0 as well.  Has anyone run into this?

6 comments
Comment actions Permalink

i also want to add that the step over just steps from breakpoint to breakpoint and when it runs out of break points, it steps into .class files.

0
Comment actions Permalink

Hello,

I'm afraid I don't quite undestand the problem. Are you saying that IJ goes to the wrong place when you perform 'step over'?

Denis

0
Comment actions Permalink

Yes. for instance it will step to the "ServletWrapper.class" file even though there is no breakpoint there.

0
Comment actions Permalink

That's expected behavior. You can perform any number of stepping since the break point is hit. The stepping will just follow exection flow then.

Denis

0
Comment actions Permalink

I"m slightly confused.  Lets say i'm in a method with 10 lines.  Lets say that i have a breakpoint on line 1.  I expect the step over to take me to line 2, then 3, etc.  Instead if i step over line 1, it takes me to a completely different file.  This is expected behavior?  I would also like to point out that I dont have this problem with eclipse.

0
Comment actions Permalink

Step over is expected to bring you to the next line. There may be number of situtations that explain the mentioned behavior, e.g. incorrect IDe setup (sources don't correspond to the executed binaries); AOP processing at the remote process (some byte code is injected to the binaries being executed) etc.

You can also check current call stack when stepping brings you to the unexpected location in order to understand the control flow.

If you provide minimal but complete standalone example that illustrates the problem I have a look.

Denis

0

Please sign in to leave a comment.