Index: core/kernel/utility/debugger/debugger.js IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/debugger/debugger.js (revision 15908) +++ core/kernel/utility/debugger/debugger.js (revision ) @@ -60,6 +60,7 @@ // Debugger function Debugger($params) { this.RowSeparator = ''; + this.FilterTypes = ['error','warning','notice','sql','other']; this.IsFatalError = false; this.ErrorsCount = 0; this.SQLCount = 0; @@ -220,6 +221,28 @@ var $tr = document.createElement('TR'); this.DebuggerTable.appendChild($tr); $tr.className = 'debug_row_' + (this.RowCount % 2 ? 'odd' : 'even'); + + if ( this.RowCount > 2 ) { + $filter_type = 'other'; + + if ( $html.indexOf('Query Number') > 0 || $html.indexOf('SQL Total time:') > 0 ) { + $filter_type = 'sql'; + } + + if ( $html.indexOf('class="debug_error"') > 0 ) { + if ( $html.indexOf('class="debug_error">Notice') > 0 ) { + $filter_type = 'notice'; + } else if ( $html.indexOf('class="debug_error">Warning') > 0 ) { + $filter_type = 'warning'; + } else { + $filter_type = 'error'; + document.getElementById('debug_row_' + (this.RowCount -1 ).toString()).className = 'debug_row_' + (this.RowCount % 2 ? 'even' : 'odd') + ' dbg-' + $filter_type + '-row'; + } + } + + $tr.className += ' dbg-' + $filter_type + '-row'; + } + $tr.id = 'debug_row_' + this.RowCount; var $td = document.createElement('TD'); $td.className = 'debug_cell'; @@ -363,6 +386,22 @@ $e = ($e) ? $e : event; $e.cancelBubble = true; if ($e.stopPropagation) $e.stopPropagation(); +} + +Debugger.prototype.Filter = function() { + + var $new_filter = document.getElementById('dbg_filter').value; + var $container_class_name = 'debug_layer_container'; + + if ( $new_filter != '' ) { + for (var index = 0; index < this.FilterTypes.length; ++index) { + if ( this.FilterTypes[index] != $new_filter ) { + $container_class_name += ' dbg-' + this.FilterTypes[index] + '-row-hidden'; + } + } + } + + this.DebuggerDIV.className = $container_class_name; } Debugger.prototype.Toggle = function($KeyCode) { \ No newline at end of file Index: core/kernel/utility/debugger/debugger.css IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/debugger/debugger.css (revision 15908) +++ core/kernel/utility/debugger/debugger.css (revision ) @@ -132,4 +132,6 @@ padding: 0px; } - +.dbg-error-row-hidden .dbg-error-row, .dbg-warning-row-hidden .dbg-warning-row, +.dbg-notice-row-hidden .dbg-notice-row, .dbg-sql-row-hidden .dbg-sql-row, +.dbg-other-row-hidden .dbg-other-row {display: none} \ No newline at end of file Index: core/kernel/utility/debugger.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/debugger.php (revision 15917) +++ core/kernel/utility/debugger.php (revision ) @@ -1468,7 +1468,7 @@ $this->appendSession(); // show php session if any // ensure, that 1st line of debug output always is this one: - $top_line = '
[Reload Frame] [Hide Debugger] [Clear Debugger][Current Time: ' . date('H:i:s') . '] [File Size: #DBG_FILESIZE#]
'; + $top_line = '
[Reload Frame] [Show: ] [Hide Debugger] [Clear Debugger][Current Time: ' . date('H:i:s') . '] [File Size: #DBG_FILESIZE#]
'; $this->appendHTML($top_line); $this->moveToBegin(1);