error reporting is redirected: https://www.zen-cart.com/tutorials/index.php?article=82

And you'll probably need to wrap a die() around your print_r outputs, since they need to be echoed and then execution halted in order to see anything.

This is what I'll often do:

die('info: <pre> ' . print_r($var1, true) . print_r($var2, true) . print_r($var3, true));