Connection: emit server debug messages if a debug function is set