user746461
user746461

Reputation:

How to show the value of a field in an object when debugging?

I'm writing Java program in eclipse 4.3 (Kepler). As the figure 1 shows, when the cursor hovers on an object, it prompts the value of the object. But if the cursor is on the field of an object, the variable value doesn't show. (Figure 2)

when the cursor hover on an object, it prompts the value of the object Figure 1

enter image description here Figure 2

Visual Studio however can show the value of an expression, see figure 3. enter image description here Figure 3

Is there anyway to make eclipse to show field value of an object when my cursor hovers on it?

Upvotes: 1

Views: 381

Answers (2)

Brett Holmes
Brett Holmes

Reputation: 387

Here is a link to a tutorial with your answer.

http://eclipse.dzone.com/news/tips-and-tricks-debugging-ecli

Upvotes: 0

bachN
bachN

Reputation: 612

Eclipse is different for the debugging, you have to search for your variable in another frame like presented here

Upvotes: 0

Related Questions