开发者

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

开发者 https://www.devze.com 2023-04-04 13:22 出处:网络
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

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

精彩评论

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