Automatic merge from submit-queue (batch tested with PRs 51666, 49829, 51058, 51004, 50938) Add debugging to the codegen process This was useful when debugging a different problem.