Conman problem while we are writing some custom code in magento 2 for print any object. Request go to the infinite look and memory issue.
For resolve the issue i found some workaround debug() method. You can find code in
For print any object you can use below code.
$object->debug();
For example if we want to print product object:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get(‘Magento\Catalog\Model\ProductFactory’);
$product->debug();