Skip to content

Instantly share code, notes, and snippets.

@Itachi261092
Last active June 28, 2018 13:55
Show Gist options
  • Save Itachi261092/f5dc05d608ad20558563 to your computer and use it in GitHub Desktop.
Save Itachi261092/f5dc05d608ad20558563 to your computer and use it in GitHub Desktop.
[1C-Bitrix / 1С-Битрикс] Debug short function / Короткая функция для дебага
// Debug
function dbg($res, $hidden = false, $die = false){
if ($hidden == true) $style = ' style="display: none;"';
echo '<pre'.$style.'>'; print_r($res); echo '</pre>';
if ($die == true) die();
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment