debugger tests: added method to dump children of values (RIDER-IC-CR-4)

This commit is contained in:
Artem Bukhonov
2016-11-22 19:23:24 +03:00
committed by nik
parent e72f31728d
commit 84fff35443
@@ -161,9 +161,17 @@ public class XDebuggerTestUtil {
return Pair.create(all, container.frameToSelect);
}
/**
* @deprecated use {@link XDebuggerTestUtil#collectChildren(XValueContainer)}
*/
@Deprecated
public static List<XValue> collectVariables(XStackFrame frame) throws InterruptedException {
return collectChildren(frame);
}
public static List<XValue> collectChildren(XValueContainer value) throws InterruptedException {
XTestCompositeNode container = new XTestCompositeNode();
frame.computeChildren(container);
value.computeChildren(container);
return container.waitFor(TIMEOUT).first;
}