Sergey Senkov Sergey Senkov - 9 days ago 8
Java Question

Is there any way to set breakpoints on all methods of a class?

Is there any way to set breakpoints on all methods of a given class?

I have a huge (2300 lines) legacy class and I need to set breakpoints on all method calls to understand how this mess works.

Answer

I have discovered workaround :

1. I have set "Toggle Brakepoint" hotkey to Alt+Numpad 0.
2. After that you can click on first method
3. Use "Toggle Brakepoint"
4. Alt+Down - goto Next Method. ( Alt+Up - goto Previous Method. )
5. Repeat 3 step.

Comments