简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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