How to debug on Arduino mega 2560

I see. I will have the hardware tomorrow to cross-check.