TYPO3 CMS  TYPO3_6-2
GlobalDebugFunctions.php
Go to the documentation of this file.
1 <?php
2  // Simple debug function which prints output immediately
3  function xdebug($var = '', $debugTitle = 'xdebug') {
4  // If you wish to use the debug()-function, and it does not output something,
5  // please edit the IP mask in TYPO3_CONF_VARS
6  if (!\TYPO3\CMS\Core\Utility\GeneralUtility::cmpIP(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {
7  return;
8  }
10  }
11 
12  // Debug function which calls $GLOBALS['error'] error handler if available
13  function debug($variable = '', $name = '*variable*', $line = '*line*', $file = '*file*', $recursiveDepth = 3, $debugLevel = E_DEBUG) {
14  // If you wish to use the debug()-function, and it does not output something,
15  // please edit the IP mask in TYPO3_CONF_VARS
16  if (!\TYPO3\CMS\Core\Utility\GeneralUtility::cmpIP(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {
17  return;
18  }
19  if (is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'], 'debug'))) {
20  $GLOBALS['error']->debug($variable, $name, $line, $file, $recursiveDepth, $debugLevel);
21  } else {
22  $title = $name === '*variable*' ? '' : $name;
23  $group = $line === '*line*' ? NULL : $line;
24  \TYPO3\CMS\Core\Utility\DebugUtility::debug($variable, $title, $group);
25  }
26  }
27 
28  function debugBegin() {
29  if (is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'], 'debugBegin'))) {
30  $GLOBALS['error']->debugBegin();
31  }
32  }
33 
34  function debugEnd() {
35  if (is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'], 'debugEnd'))) {
36  $GLOBALS['error']->debugEnd();
37  }
38  }
static debug($var='', $header='', $group='Debug')
xdebug($var='', $debugTitle='xdebug')
debug($variable='', $name=' *variable *', $line=' *line *', $file=' *file *', $recursiveDepth=3, $debugLevel=E_DEBUG)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]