Created
February 10, 2016 13:16
-
-
Save YuriDan/c0830513cc0d7f1108c0 to your computer and use it in GitHub Desktop.
Bitrix D7 debug functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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