Index: trunk/core/kernel/utility/debugger.php =================================================================== diff -u -N -r7391 -r7635 --- trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 7391) +++ trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 7635) @@ -144,6 +144,10 @@ $dbg_constMap['DBG_EDITOR'] = 'c:\Program Files\Zend\ZendStudio-5.2.0\bin\ZDE.exe %F'; } + if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] && constOn('DBG_SKIP_AJAX')) { + $this->safeDefine('DBG_SKIP_REPORTING', 1); + } + // user defined options override debugger defaults $dbg_constMap = $this->array_merge_recursive2($dbg_constMap, $dbg_options); @@ -818,6 +822,20 @@ } /** + * Returns profile total key (check against unexisting key too) + * + * @param string $key + * @return int + */ + function getProfilerTotal($key) + { + if (isset($this->ProfilerTotalCount[$key])) { + return (int)$this->ProfilerTotalCount[$key]; + } + return 0; + } + + /** * Generates report * */ @@ -902,7 +920,7 @@ $is_ajax = isset($_GET['ajax']) && $_GET['ajax'] == 'yes'; $skip_reporting = $this->constOn('DBG_SKIP_REPORTING') || $this->constOn('DBG_ZEND_PRESENT'); - if ($is_ajax || !$skip_reporting) { + if (($is_ajax && !constOn('DBG_SKIP_AJAX')) || !$skip_reporting) { $debug_file = $this->tempFolder.'/debug_'.$this->rowSeparator.'.txt'; if (file_exists($debug_file)) unlink($debug_file); @@ -937,12 +955,11 @@