Add a method breakpoint to all methods of a class in EclipseIDE

前端 未结 2 1455
刺人心
刺人心 2020-12-23 11:04

In Eclipse, is there a way you can set Method Breakpoints on all the methods of the class without going to individual methods? The motivation behind is that, any time a meth

相关标签:
2条回答
  • 2020-12-23 11:40

    The fastest way is to go to the "Outline" view and select all of the methods you want, right-click and click "Toggle Method Breakpoint"

    0 讨论(0)
  • 2020-12-23 11:45

    No direct way that I know of.
    But if you add AspectJ (that is aspect-oriented extension), you could write an "advice" that you would set on each method of a Class when entering them on runtime.

    alt text

    You could then set a breakpoint in that advice code.

    0 讨论(0)
提交回复
热议问题