Add more debug messages for text extraction problems.