DEBUGGING

How exactly debugging an arduino based project is done ?

With plenty of meaningful debugging messages to the serial port.