Weird Workshop
Weird Workshop

Reputation: 43

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

Upvotes: 3

Views: 453

Answers (2)

Matt Fellows
Matt Fellows

Reputation: 6532

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.

Upvotes: 5

John B
John B

Reputation: 32969

No. Your best option might be to output the value of the variable whenever it is changed.

Upvotes: 1

Related Questions