in eclipse, we can add breakpoint at every method of a class at once.

in your project explorer --> (go to the class) expand the class. it will give you a list of declaration and methods. there,

  1. select all the methods using ctrl.
  2. right click and select toggle method breakpoint.

that's all. which ever method you select, a breakpoint will be placed.


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.


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"

Related Query

More Query from same tag