如何在Eclipse中的Class NOT一行设置断点?
我只想在一组特定的类中调用任何函数后开始调试。
是否可以实现这一点在Eclipse中?
或者我必须在每个要调试的类中的每个函数上设置断点?
Is it possible to achieve this in Eclipse ? or do I have to set a breakpoint on each function in each class I want to debug?
更新:
我没有问过如何在eclipse中设置断点。我想调试一个类,而不知道要调用哪个函数。
I didn't ask how to set a breakpoint in eclipse. I would like to debug a class without knowing which function is going to be called.
更新2:
(我将使我的问题更清楚)
(I am going to make my problem more clear)
我被要求修复应用程序中的错误(我没有实现)。我设法缩小相关类到这个bug。每个类都有超过30个功能的问题。而且我不知道调用哪些函数。所以我正在考虑是否可以在类本身设置一个断点,以便在调用此类中的函数后开始调试。
I was requested to fix a bug in an application (Which I didn't implement). I managed to narrow down the related classes to this bug. The problem each class has over 30 functions. And I don't know exactly which functions are invoked. So I was thinking if its possible to set a breakpoint somehow on the class itself in order to start debugging once a function within this class is invoked.
我会感谢任何帮助,
Tefa
不要以为你可以选择一个类进行调试,但你可以去eclipse中的 Outline
视图,选择类中的所有方法,右键单击并选择切换方法断点
I don't think you can select a class for debugging but you could go to the Outline
view in eclipse, select all the methods in the class, right click and select Toggle Method Breakpoint