Get objects involved in Java stacktrace

纵然是瞬间 提交于 2019-11-30 20:26:22

It is a very interesting idea, but, unfortunately in whole no, you could not, it is impossible.

UPD: One of the reasons why answer is "no" is that fact, that if it could be possible, then some List of references to all created objects must exist. But in this case Java GC would not work at all.

You may try housemd. It's developed by an engineer@alibaba and safe to be used even in a production environment, e.g. taobao.com.

Its feature include:

Display object field value
Output invocation stack trace

Following is an example screenshot:

Try the Eclipse debugger in order to view the value of objects used in a particular method. Place breakpoints on the lines where you want to pause the program.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!