Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Question about R2.0 behaviour for determining if a IDebugElements have children


This is a reasonable request. I have filed a bug for this feature. Note that we have moved away from lists of "children" to arrays of specific object types (IStackFrames, for example). So rather than #hasChildren, we will have methods like #hasStackFrames.

http://bugs.eclipse.org/bugs/show_bug.cgi?id=11720

Darin



boxall@xxxxxxxxxx
Sent by: platform-debug-dev-admin@xxxxxxxxxxx

03/19/2002 12:47 PM
Please respond to platform-debug-dev

       
        To:        <platform-debug-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [platform-debug-dev] Question about R2.0 behaviour for determining if a IDebugElements have children


In R1.0 the "hasChildren()" method call was used to determine if a "+" was
to be shown on a tree node in
for example the Variables view.
This worked well because a StackFrame could respond that there were
children without actually
getting them.

In R2.0 this has changed to call the IDebugElement's method that returns
its "elements".
e.g for IStackFrame the getVariables() method is called.

The problem is that the Variable's view caches the response and therefore
requires that our
debug element return a full and correct list.   In some cases this can
cause the debug engine to do lots of
processing for something that the user may never expand.

This can be very costly.

What it needs in addition to IStackFrame.getVariables() is a method called
"boolean IStackFrame.hasVariables()"
that would allow engines to respond that there are variables without
actually having to get them.


Alan Boxall - IBM Distributed Debugger

_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-debug-dev



Back to the top