DebuggerState debuggerState, boolean forceObjectFormat) {
if (forceObjectFormat && remoteObject.hasChildren()) {
return formatRemoteObjectInConsoleAsObject(remoteObject, debuggerState);
}
RemoteObjectType type = remoteObject.getType();
RemoteObjectSubType subType = remoteObject.getSubType();
if (type == RemoteObjectType.OBJECT && (subType == null ||
subType == RemoteObjectSubType.ARRAY || subType == RemoteObjectSubType.NODE)) {
// TODO: Display small ARRAYs inlined.
// TODO: Display NODE objects as XML tree some day.