how to debug code in arduino IDE

Don't knock it till you try hey, lol....