How do i inspect a training batch during debugging?

How do i get the batch from the DataLoader that is causing an error in the pipeline? Is there a current_batch property or get_current_batch method or similar in the trainer or dataloader?