Sometimes array print not working issue with “Allowed memory size” So you can use below method
If you print array issue when print_r($_product->getData()); insted of print_r($_product->debug());
$_product = $block->getProduct(); echo "<pre>"; print_r($_product->debug()); echo "</pre>"; exit;

