Alternatively, to dump variables you could use error_log($var) or error_log(print_r($var, 1)) for arrays and objects.
Be sure WP_DEBUG_LOG and WP_DEBUG_DISPLAY constants are defined in your wp-config.php file and debug.log file will appear and update in wp-content folder.