Skip to content

Instantly share code, notes, and snippets.

@kchukavin
Last active July 25, 2016 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kchukavin/ffad94ba75e904c7bfad74523139b8a5 to your computer and use it in GitHub Desktop.
Save kchukavin/ffad94ba75e904c7bfad74523139b8a5 to your computer and use it in GitHub Desktop.
Bitrix Debug
Bitrix\Main\Diag\Debug::writeToFile(array('ID' => $id, 'fields'=>$fields ),"","/debug.txt");
Bitrix\Main\Diag\Debug::dumpToFile(array('ID' => $id, 'fields'=>$fields ),"","/debug.txt");
// source: http://pilezkiy.com/blog/bitrix-debug-methods/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment