If I switch on debug mode, either the default debug.log or a defnied file is created. But both are always empty. Any advice?