是否可以在类的所有方法上设置断点? [英] Is there any way to set breakpoints on all methods of a class?

查看:128
本文介绍了是否可以在类的所有方法上设置断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在给定类的所有方法上设置断点?

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

我有一个庞大的(2300行)遗留类,我需要在所有方法调用上设置断点以了解这种混乱的工作原理.

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

推荐答案

我发现了解决方法:

1.我已将"Toggle Brakepoint"热键设置为 Alt + 数字键0 .
2.之后,您可以单击第一种方法
3.使用切换制动点"
4. Alt + Down -转到下一个方法. ( Alt + Up -转到上一个方法.)
5.重复3步.

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.

这篇关于是否可以在类的所有方法上设置断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆