Revision d8e671e9
Von Sven Schöling vor mehr als 17 Jahren hinzugefügt
SL/LXDebug.pm | ||
---|---|---|
1 | 1 |
package LXDebug; |
2 | 2 |
|
3 |
use constant NONE => 0; |
|
4 |
use constant INFO => 1; |
|
5 |
use constant DEBUG1 => 2; |
|
6 |
use constant DEBUG2 => 4; |
|
7 |
use constant QUERY => 8; |
|
8 |
use constant TRACE => 16; |
|
9 |
use constant BACKTRACE_ON_ERROR => 32; |
|
10 |
use constant ALL => 63; |
|
3 |
use constant NONE => 0; |
|
4 |
use constant INFO => 1; |
|
5 |
use constant DEBUG1 => 1 << 1; |
|
6 |
use constant DEBUG2 => 1 << 2; |
|
7 |
use constant QUERY => 1 << 3; |
|
8 |
use constant TRACE => 1 << 4; |
|
9 |
use constant BACKTRACE_ON_ERROR => 1 << 5; |
|
10 |
use constant ALL => (1 << 6) - 1; |
|
11 |
use constant DEVEL => INFO | QUERY | TRACE | BACKTRACE_ON_ERROR; |
|
11 | 12 |
|
12 | 13 |
use constant FILE_TARGET => 0; |
13 | 14 |
use constant STDERR_TARGET => 1; |
lx-erp.conf | ||
---|---|---|
92 | 92 |
# LXDebug::BACKTRACE_ON_ERROR - Vollst?ndiger Aufrufpfad, wenn $form->error() aufgerufen wird |
93 | 93 |
# LXDebug::ALL - alle Debugausgaben |
94 | 94 |
# |
95 |
# LXDebug::DEVEL - wie INFO | QUERY | TRACE | BACKTRACE_ON_ERROR |
|
96 |
# |
|
95 | 97 |
# Beipiel: |
96 | 98 |
# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY; |
97 | 99 |
$LXDebug::global_level = LXDebug::NONE; |
Auch abrufbar als: Unified diff
Debugmodi umgeschrieben auf das viel schoenere shiftingformat.
Neuer Debugmodus "DEVEL", der genau das enthaelt was man ueblicherweise zum debuggen braucht,
ohne den overhead von ALL.