[英]Watching Variables in Eclipse without breakpoint
I'm developing a Java timer application and would like to monitor the value of a variable but as it is changing regularly and slowly I don't necessarily need to have a breakpoint. 我正在开发一个Java计时器应用程序,并希望监视变量的值,但由于它正在定期和缓慢地变化,我不一定需要有一个断点。 So would like to add a Watch to a variable but don't want a breakpoint, is this possible?
所以想将一个Watch添加到变量但不想要断点,这可能吗?
I'm using Eclipse 3.7.0 我正在使用Eclipse 3.7.0
You could log the variable to a file. 您可以将变量记录到文件中。 Then you could monitor that file with a tail type program, eg WinTail for windows or tail for 'nix systems.
然后,您可以使用尾部类型程序监视该文件,例如,用于Windows的WinTail或用于'nix系统的尾部。
不可以。您最好的选择可能是在变量发生时输出变量的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.