Note how to redirect debug messages to file.