Debug mode logs the scanbuffer before invoking the parser.