.setCommand(JDWPCommands.VirtualMachineCommandSet.IDSizesCommand);
commandPacket
.setCommandSet(JDWPCommands.VirtualMachineCommandSet.CommandSetID);
// Send packet
ReplyPacket replyPacket = checkReply(performCommand(commandPacket));
// Get FieldIDSize from ReplyPacket
TypesLengths.setTypeLength(TypesLengths.FIELD_ID, replyPacket
.getNextValueAsInt());
// Get MethodIDSize from ReplyPacket
TypesLengths.setTypeLength(TypesLengths.METHOD_ID, replyPacket
.getNextValueAsInt());
// Get ObjectIDSize from ReplyPacket
TypesLengths.setTypeLength(TypesLengths.OBJECT_ID, replyPacket
.getNextValueAsInt());
// Get ReferenceTypeIDSize from ReplyPacket
TypesLengths.setTypeLength(TypesLengths.REFERENCE_TYPE_ID, replyPacket
.getNextValueAsInt());
// Get FrameIDSize from ReplyPacket
TypesLengths.setTypeLength(TypesLengths.FRAME_ID, replyPacket
.getNextValueAsInt());
// Adjust all other types lengths
TypesLengths.setTypeLength(TypesLengths.ARRAY_ID, TypesLengths
.getTypeLength(TypesLengths.OBJECT_ID));