Quentamia
Quentamia

Reputation: 3292

In Eclipse, is there an equivalent to Visual Studio's 'Watch'?

In VS, you can 'Watch' an object and drill down into it. Is there an equivalent when programming Java in Eclipse?

Upvotes: 4

Views: 1247

Answers (2)

Quentamia
Quentamia

Reputation: 3292

I found what I was looking for. If anyone else is searching for it, it's called Expressions in Eclipse.

Upvotes: 5

cryptic_star
cryptic_star

Reputation: 1873

You can use the debug mode to watch objects, although it only works for local objects defined in the scope. I would recommend putting a breakpoint at the start of where you want to watch, and then stepping through the motions. In the top right corner of the debug profiler, you should be able to expand the tree of any given object that's in scope to examine it further.

The basics of how to use the debugger are here.

Upvotes: 2

Related Questions