evalStr = new PHPDBGEvalString (stack, serGlobals); // Process serialized variables
DBGVarList = evalStr.getVariables ();
- //resetHasChangedInfo (DBGVarList); // Reset the hasChanged info for all PHPVariables
- //updateVariableList (DBGVarList, evalStr.getVariables ()); // Replicate the 'static' variable list and the via DBG received variable list
+ PHPVariable var = (PHPVariable) DBGVarList.get (0);
+
+ if (var.getName ().equals ("")) { // The eclipse variable view cannot handle Variables which have an empty name
+ // when it comes to variable tree restore operation. Without a name, no restore!
+ var.setName (" "); // Give a name to the variable root node. Even if it is only a space :.)
+ } // TODO the best would be to remove the empty root node, but this would
+ // require a understanding and reworking of the PHPDBGEvalstring class.
+
return DBGVarList; // Return the variables as list
}