Skip to content

Instantly share code, notes, and snippets.

@YuriDan
Created February 10, 2016 13:16
Show Gist options
  • Save YuriDan/c0830513cc0d7f1108c0 to your computer and use it in GitHub Desktop.
Save YuriDan/c0830513cc0d7f1108c0 to your computer and use it in GitHub Desktop.
Bitrix D7 debug functions
Bitrix\Main\Diag\Debug::writeToFile(array('ID' => $id, 'fields'=>$fields ),"","prices.txt");
Bitrix\Main\Diag\Debug::dumpToFile(array('ID' => $id, 'fields'=>$fields ),"","prices.txt");
// В начале исследуемого участка кода, добавляем:
Bitrix\Main\Diag\Debug::startTimeLabel('test');
// в конец:
Bitrix\Main\Diag\Debug::endTimeLabel('test');
// И для вывода используем:
Bitrix\Main\Diag\Debug::getTimeLabels();
Bitrix\Main\Diag\Helper::getCurrentMicrotime();
Bitrix\Main\Diag\Helper::getBackTrace($limit = 0, $options = null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment