<?$APPLICATION->IncludeComponent(
"bitrix:catalog.viewed.products",
"...",
Array(...),
$component
);?>
file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/debug.log', print_r(__FILE__, __LINE__, date('Y/m/d H:i:s'), 'die here'));
die('HERE');