Results 1 to 9 of 9
Thread: About Eclipse
- 10-20-2010, 07:24 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 7
- Rep Power
- 0
About Eclipse
Hai Everyone
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:
- 10-20-2010, 08:53 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
You'll need to give an example, because I didn't quite follow that.
- 10-20-2010, 02:38 PM #3
Member
- Join Date
- Aug 2010
- Posts
- 7
- Rep Power
- 0
Hai Tolls
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.
Thank You
With regards
Mani
- 10-20-2010, 03:05 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
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.
- 10-21-2010, 06:58 AM #5
Member
- Join Date
- Aug 2010
- Posts
- 7
- Rep Power
- 0
About IDE
Hai Toll
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.
Thank You
With regards
Mani
- 10-21-2010, 08:58 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
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.
- 10-21-2010, 10:32 AM #7
Member
- Join Date
- Aug 2010
- Posts
- 7
- Rep Power
- 0
Regarding the IDE
Hey Toll
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
Regards
Mani
- 10-21-2010, 11:25 AM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
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:
Java Code:... 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.
- 10-21-2010, 12:42 PM #9
Member
- Join Date
- Aug 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
How to use GUI with eclipse
By The Ghost 88 in forum EclipseReplies: 9Last Post: 04-15-2009, 07:41 PM -
Is it possible to run eclipse plugins without using eclipse?
By ambar in forum EclipseReplies: 2Last Post: 01-27-2009, 02:10 PM -
Eclipse Bug - Can't Read From A File Using Eclipse?
By carlodelmundo in forum New To JavaReplies: 6Last Post: 01-26-2009, 04:25 PM -
Need Help in IDE Eclipse
By jazz2k8 in forum New To JavaReplies: 2Last Post: 07-21-2008, 04:52 PM -
PMD in Eclipse
By pneeraja in forum EclipseReplies: 1Last Post: 06-25-2008, 02:42 PM


LinkBack URL
About LinkBacks

Bookmarks