Made GenerateToStringDebugVersion() public since it is useful for debugging or logging purposes.