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

后端 未结 6 1514
我在风中等你
我在风中等你 2020-12-24 04:40

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 und

6条回答
  •  再見小時候
    2020-12-24 05:25

    The only way you'll be able to do what you want is to set method breakpoints on each and every method with the class in question. You need to click on the left hand gutter next to the method - a little red circle with 4 dots will appear and you may get a warning saying method level breakpoints can impact performance. You can then further configure the breakpoint (by rightclicking on it, or select shift+F8) and set it so that it breaks on entry, exit or both

    I'm afraid theres no way to do this in a single step/setting.

提交回复
热议问题