在 Eclipse 中,有没有一种方法可以在列表样式 View 中查看程序调试时调用的所有方法?我不想逐步执行代码,并且我知道调用层次结构,我只想查看在应用程序上运行进程时涉及的每个方法 - 类似于所有 Activity 的提要。存在这样的东西吗?
最佳答案
除了您已经知道的调用层次结构之外,Eclipse 没有提供任何开箱即用的功能。对于以下选项,您必须编写一些代码:
- Use logging framework (log4j, slf4j etc.) to put trace in each method and it will log all methods in sequence at runtime
- If you are using spring you can achieve above result with the help of aspects as well
- You can use byte code modifier like javaassist to insert these logging statements at runtime as well.
所有这些选项仅适用于良好的日志记录。希望这会有所帮助。
关于java - Eclipse - 方法调用提要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36540711/