I am a quiet new to Eclipse Envt.
As I use this IDE for Java Development.
I have noticed one observation.
When a break point is placed and when curser move towards that variable it shows me the value it contains.
But sometime I dont get it. Instead it just qualifies the variable by showing its class name and its type.
Can anyone please help me.:confused:
You'll need to give an example, because I didn't quite follow that.
In my code I have kept a break point in front of a variable. And then started debugging.
As I step thru that breakpoint, I can see its value (in general when I place the cursor over it),
I also noticed sometimes the value is not seen, even when cursor is placed over the variable.
Can u please tell me why it happens.
I hope I am clear.
Can u please send some nice tutorials for learning the features of Eclipse IDE.
If the cursor (ie the code, not the mouse pointer) hasn't reached a point where the variable has been declared yet then it won't be able to show you a value.
I haven't got Eclipse running here, but I'm sure there's a window (probably one of the ones down the bottom in a standard layout) that'll show you all the variables available at that point. It probably has a "this" at the top, which contains all the current objects attributes, and then a list of locally defined variables.
What I meant was cursor (mouse pointer)
Step 1:Start executing in Debug mode
Step 2: just step into the line where breakpoint is. This line has the variable of interest.
Step 3:Move the mouse pointer over the variable I can see the value.
Observation: But sometimes I don't see the value. Can u explain me why it happens.
Sorry If I am still not making it clear.
Without seeing your code where it happens and doesn't I can't say.
If the variable is declared on that line then until the code has stepped past that point then that variable is not visible.
Regarding the IDE
This is just an observation.
I am running a multi threaded program.
I do step into the line which contains variable.
But sometimes I don't see it.
Hai sorry for not putting code because its not specific to the program I run.
The best thing could be please send some good tutorials in mastering the Eclipse IDE.
Thank You for your responses
Nope, I haven't had to learn Eclipse in years.
Most IDEs do the same stuff, so I find they're all pretty easy to pick up these days.
Look, here's what I'm getting at:
... some code here, in which i is not visible so will not appear in the debugger.
int i = 0; // When the code reaches this point i is still not visible, since the JVM has not actually executed this line.
... some more code, in which i is visible so hovering over it works.
... more code in which i is not visible because it is now out of scope.
Thank You Tolls
I got it.
May be the variable could be out of scope.
I shall see the problem in this light, if encounter it next time.
Thank You for u'r quick replies