开发者

Eclipse java debug

I have problem wi开发者_运维问答th code e.g.:

Object1.method1(object2.method2(var2));

I want to enter in method1 but when I press F5 in Eclipse - me transfer to method2. Is possible in Eclipse debugger point that need enter only in method1? Thanks.


either:

1) place a breakpoint in method1, resume (F8) and let the code break at the breakpoint you've set.

or

2) while being at method2, step return (F7) and then again step into (F5) will place you in method1.


The debugger is doing exactly the right thing. In order to execute method1, it first needs to compute the return value of method2 (which is the parameter to be passed to method1).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜