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.
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.
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.