Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By aegean247

Thread: How can I monitor variable value changes in eclipse?

  1. #1
    aegean247 is offline Member
    Join Date
    Aug 2011
    Location
    Canada
    Posts
    3
    Rep Power
    0

    Question How can I monitor variable value changes in eclipse?

    Hi my friends,

    I'm wondering how I can monitor the variable value changes in eclipse? Thank you!

    --
    Aegean,
    This is my first post in this forum, just something to remember : )

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Your question is unclear. You can run your code in debug mode.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,556
    Rep Power
    25

    Default

    I've also wondered about this style of debugging. Can you have the debugger stop when the value of a variable is set to a given value?
    The work around is to add lines of code at each point the variable is changed to fall into a if statement to a place where you can set a break:
    Java Code:
    if(variable has desired value) {
      int x = 213;  // Some dummy code that you can add a break point to
    }
    I had a debugger on a system I worked on in the early 80s that had that feature.

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    I'm not that familiar with debuggers.

    You generally place a break point on a certain line of code. The program pauses when it gets to that break point and you can then find out what values variables hold at that point in time. I think it may be possible to add some logic as per your example

  5. #5
    aegean247 is offline Member
    Join Date
    Aug 2011
    Location
    Canada
    Posts
    3
    Rep Power
    0

    Default

    I think using conditional breakpoint trigger will do that. Just right-click on the breakpoint and select breakpoint properties and you'll see.
    Check the details in: Debugging with the Eclipse Platform
    Tolls likes this.

Similar Threads

  1. Replies: 0
    Last Post: 04-12-2009, 03:06 AM
  2. Passing Environment Variable in Eclipse Europa
    By ajaymenon.k in forum Eclipse
    Replies: 0
    Last Post: 11-19-2007, 10:08 AM
  3. File Monitor
    By ranak81 in forum Advanced Java
    Replies: 1
    Last Post: 08-13-2007, 09:45 PM
  4. Function Monitor!
    By snooze-g in forum Advanced Java
    Replies: 1
    Last Post: 07-20-2007, 09:05 AM
  5. Caché Monitor 0.35
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-10-2007, 01:40 PM

Tags for this Thread

Posting Permissions

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