简体   繁体   中英

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. So would like to add a Watch to a variable but don't want a breakpoint, is this possible?

I'm using 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.

不可以。您最好的选择可能是在变量发生时输出变量的值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM