java - Eclipse - 方法调用提要?

标签 java eclipse

在 Eclipse 中,有没有一种方法可以在列表样式 View 中查看程序调试时调用的所有方法?我不想逐步执行代码,并且我知道调用层次结构,我只想查看在应用程序上运行进程时涉及的每个方法 - 类似于所有 Activity 的提要。存在这样的东西吗?

最佳答案

除了您已经知道的调用层次结构之外,Eclipse 没有提供任何开箱即用的功能。对于以下选项,您必须编写一些代码:

  1. Use logging framework (log4j, slf4j etc.) to put trace in each method and it will log all methods in sequence at runtime
  2. If you are using spring you can achieve above result with the help of aspects as well
  3. 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/

相关文章:

java - 为什么在 Windows 上运行 jstack 会出现 'unable to attach to 64 bit process' 错误?

java - 我可以使用 Maven 插件更新文件内容吗?

java - 如何在GWT CellTree中选择父节点时选择所有子节点?

java - IBM i (AS400) 关于新 Java 版本/Java 7 的更新

eclipse - Eclipse 中的标记和问题 View 有什么区别?

java - 我是否需要单独的 eclipse 项目来使用 PC 代理为 Android 开发

java - Java模式的优势,其中方法将对象作为参数而不是单个参数

python - PyDev 和 Django : Autocomplete not detecting Django?

eclipse - 找不到当前线程 Hibernate4/Spring3 的 session

c - 在 Eclipse 中运行 C 应用程序时出错