Alan Kasindorf > Perlbal > Perlbal::Manual::Debugging

Download:
Perlbal-1.80.tar.gz

Annotate this POD

CPAN RT

New  4
Open  3
View/Report Bugs
Source  

NAME ^

Perlbal::Manual::Debugging - Debugging Perlbal

VERSION

Perlbal 1.78.

DESCRIPTION

Perlbal has two ways of debugging.

One of them is through a management console; the other is through debugging messages.

Debugging in a console

You'll need to set up a management service and use it to dump all the information you require.

The comprehensive documentation on this process can be found at Perlbal::Manual::Management.

Debugging messages

You can control the ammount of debugging messages Perlbal dumps by setting the environment variable PERLBAL_DEBUG to a value between 0 and 4:

    PERLBAL_DEBUG = 0 # no debug

    PERLBAL_DEBUG = 4 # debug everything

Debug level 1

You can activate basic debug by setting PERLBAL_DEBUG to 1:

    PERLBAL_DEBUG = 1

The following debugging messages are turned on:

Debug level 2

By setting the debug level to 2 you'll get all the messages from level 1.

    PERLBAL_DEBUG = 2

You will also get a few others:

Debug level 3

    PERLBAL_DEBUG = 3

By setting the debug level to 3 you'll get all the messages from level 1 and 2 plus the following:

Debug level 4

By setting the debug level to 4 you get all the messages from levels 1 to 3.

Plus, write is redefined so that whenever write is called it first prints write($self, <$clen>"$content") from ($pkg, $filename, $line).

    PERLBAL_DEBUG = 4

SEE ALSO

Perlbal::Manual::Configuration, Perlbal::Manual::Management.

syntax highlighting: