Results 1 to 9 of 9

Thread: About Eclipse

  1. #1
    deenadayal is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Smile 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:

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    You'll need to give an example, because I didn't quite follow that.

  3. #3
    deenadayal is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    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

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    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.

  5. #5
    deenadayal is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default 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

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    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.

  7. #7
    deenadayal is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default 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

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    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.

  9. #9
    deenadayal is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    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
    With regards
    Mani

Similar Threads

  1. How to use GUI with eclipse
    By The Ghost 88 in forum Eclipse
    Replies: 9
    Last Post: 04-15-2009, 08:41 PM
  2. Replies: 2
    Last Post: 01-27-2009, 03:10 PM
  3. Eclipse Bug - Can't Read From A File Using Eclipse?
    By carlodelmundo in forum New To Java
    Replies: 6
    Last Post: 01-26-2009, 05:25 PM
  4. Need Help in IDE Eclipse
    By jazz2k8 in forum New To Java
    Replies: 2
    Last Post: 07-21-2008, 05:52 PM
  5. PMD in Eclipse
    By pneeraja in forum Eclipse
    Replies: 1
    Last Post: 06-25-2008, 03:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •