#837 Unable to view watch variables

4: Serious
closed-fixed
9
2010-02-24
2010-02-23
chk681
No

In Dr Java 2007, I could watch all instance variables of objects that invoked methods when in focus. In the 2008 and 2009 versions, I can watch local variables and parameter variables of methods, but not the instance variables of the object that invoked the method.

Discussion

  • chk681
    chk681
    2010-02-23

    Dr Java setup

     
  • Mathias Ricken
    Mathias Ricken
    2010-02-23

    • priority: 5 --> 9
     
  • Mathias Ricken
    Mathias Ricken
    2010-02-23

    Verified. Fields cannot be watched anymore. This needs to be fixed.

     
  • Mathias Ricken
    Mathias Ricken
    2010-02-23

    • status: open --> open-accepted
     
  • Mathias Ricken
    Mathias Ricken
    2010-02-24

    • assigned_to: nobody --> mgricken
    • status: open-accepted --> closed-accepted
     
  • Mathias Ricken
    Mathias Ricken
    2010-02-24

    We now display all watches correctly, and we do not allow method calls or expressions, which could potentially have side effects. Watches just should just *watch*. Allowing side effects or method calls makes the IDE more complicated, because we would have to explain exactly when watches get updated, and therefore the methods called.

    We do not have good type information, though, because there is no way to distinguish whether the interpreter returned a primitive or a boxed type right now. Also, handling both local variables and fields is messy right now, so local variables currently do not display type information.

    What we should do is also export the type of an interpretation result.

     
  • Mathias Ricken
    Mathias Ricken
    2010-02-24

    • status: closed-accepted --> closed-fixed