获取局部变量 [英] Getting local variables

查看:164
本文介绍了获取局部变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当从已经部署的应用程序获取堆栈跟踪作为错误报告时,也可以获取实际的变量值来重构异常抛出之前的系统状态。

When getting a stacktrace as error report from an application that is already deployed, it would be helpful to also get the actual variable values to reconstruct the system's state at the point before the exception was thrown.

在Java中有什么可行的,可以这样做吗?

Is anything like that feasible in Java and how could one do that?

干杯,
最大

推荐答案

看看这个工具:

http://www.chrononsystems.com/

它允许您跟踪堆栈跟踪与选项在应用程序的时间轴中及时返回。我没有自己尝试,但是对于您所指的情况(意外的例外)来说,这看起来真的很有希望。

It allows you to keep track of the stack trace with the option to go back in time in the application's timeline. I haven't tried it myself but it looks really promising for the type of situation you are referring to (unexpected Exceptions).

听到有帮助的话会很好:)

It will be good to hear if it helped :)

这篇关于获取局部变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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