简体   繁体   English

java(eclipse编辑器)中是否有注释方法,以便调试器始终在该方法之上

[英]Is there annotate a method in java (eclipse editor) so that the debugger always steps over it

I'm writing code with a lot of minor methods of the literally-can't-be-incorrect variety (eg one-line get/set methods for private fields), and while debugging, I don't want to accidently step into one of them because that changes the stack which resets the focus on my fields and variables. 我正在用很多次要的方法编写代码,这些方法实际上是不正确的(例如,专用字段的单行获取/设置方法),并且在调试时,我不想偶然进入其中之一是因为这会更改堆栈,从而将重点重新放在我的字段和变量上。

Is there any sort of @ annotation or something like that which will tell the debugger, "if you're told to step into this function, step over it instead"? 是否有某种@注释或类似的内容会告诉调试器,“如果被告知您要进入此函数,请改为执行它”?

F5 – “Step Into”
F6 – “Step Over”
F7 – “Step Return”
F8 – “Resume”
Ctrl+Shift+B – “Toggle Breakpoint”
Ctrl+Shift+I – “Inspect”

This is all I can find for you. 这就是我能为您找到的一切。 Debugging depends on IDE(in this case eclipse) setting so I sure with you there's no @annotation on source code that can archive your requirement. 调试取决于IDE(在本例中为eclipse)设置,因此我确定与您@annotation在源代码上没有@annotation可以存档您的要求。

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

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