简体   繁体   English

Eclipse Java调试

[英]Eclipse java debug

I have problem with code eg: 我的代码有问题,例如:

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

I want to enter in method1 but when I press F5 in Eclipse - me transfer to method2. 我想输入method1,但是当我在Eclipse中按F5键时,我转移到method2。 Is possible in Eclipse debugger point that need enter only in method1? 仅需要在method1中输入的Eclipse调试器点中可能吗? Thanks. 谢谢。

either: 要么:

1) place a breakpoint in method1, resume ( F8 ) and let the code break at the breakpoint you've set. 1)在method1中放置一个断点, 继续F8 ),然后让代码在您设置的断点处中断。

or 要么

2) while being at method2, step return ( F7 ) and then again step into ( F5 ) will place you in method1. 2)在进入method2时, 返回步骤F7 ),然后再次进入F5 ),将您置于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). 为了执行method1,它首先需要计算method2的返回值(这是要传递给method1的参数)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM