开发者

How to get the current value of any variable in JRE (Like debugger mode in eclipse) without sysouts

Is there any way to get current value of any variable in JRE without using outs in class files. Like the one in eclipse debugger mode which shows the current value of any va开发者_开发知识库riable.


So you want a live display of your variable values, but without using a debugger, and without using sysout?

You could write to a log file or to some database, but that won't be as "live" as the debugger.

You could also write some more java classes which use some graphical / windows tools. They would create a new window that will hold the variable values, and change whenever you call some update function in the code (or click a button, in which case you would have to use synchronized access to the variables).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜