In some cases the aforementioned information may not be enough to find and fix the bug. In these cases it may be useful to turn on debug messages.
Two steps are required in order to log debug messages. First you need to allow the debug messages in the server. Then the logging must be configured to log debug messages (see log). It is recommended to log these messages to a file. Firstly, the debug output may be rather large and secondly, it is easier to use the data for debugging.