Menu

#143 Display local variables in debugger

open
nobody
Debugger (17)
4
2003-02-11
2003-02-11
No

Story:
User hits a breakpoint or steps in the debugger. A
tabbed pane on the DebugPanel displays all current
local variables that are in scope, along with their
values. The values could be editable, allowing the
user to change values in the JVM as it excutes.

Implementation:
The JPDA interface supports most of the functionality
without a problem. The main work will just be
providing a view for it.

Discussion

  • Peter Centgraf

    Peter Centgraf - 2003-07-20

    Logged In: YES
    user_id=431096

    The only problem I see is with reference types. We currently
    display them via the toString method, but this doesn't map
    back into a working object. The only way to construct an
    object reliably would be to call a constructor, but this could
    have side effects (such as hitting another breakpoint). I don't
    think it would be wise to allow this. If we could enable the
    JTable fields for the primitive types and not the Objects,
    editting could still be useful. In any case, being able to see a
    listing would be great.

     
  • Charles Reis

    Charles Reis - 2003-07-20

    Logged In: YES
    user_id=429731

    Agreed. In fact, we don't even really need to make primitives
    editable, since it's easy to change things in the Interactions Pane
    (which is consistent for both primitives and reference types). So just
    consider this a feature request for an uneditable listing.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.