Running a Test Under the Debugger

You can run a test under the debugger (actually run a Bacula daemon under the debugger) by first setting the environment variable REGRESS_WAIT with commands such as:

REGRESS_WAIT=1
export REGRESS_WAIT

Then executing the script. When the script prints the following line:

Start Bacula under debugger and enter anything when ready ...

You start the Bacula component you want to run under the debugger in a different shell window. For example:

cd .../regress/bin
gdb bacula-sd
(possibly set breakpoints, ...)
run -s -f

Then enter any character in the window with the above message. An error message will appear saying that the daemon you are debugging is already running, which is the case. You can simply ignore the error message.

Possible Next Steps

Go to Bacula MD5 Algorithm.

Go back to Bacula Regression Testing.

Go back to Developer Guide.