Can you please tell me how to turn on debug mode

Hi,
Can you please tell me how to turn on debug mode in wordpress? Can a plugin be used to do this?