debug program

hello, i'm just start with arduino, and I'm trying looking for a debugger for the programs. I finded "arduino degub" in google and in the arduino forum but I have no results. Maybe I don't do on the right way, I dowlod the compiler from the arduino's web and try to compile a sample led program, it runs perfectly, but I don't find anything to debug.

Befor I practice with mplab and it have a self debbuger ans simulator. there is any way to do that with arduino, and also there is any software tool to simulate arduino programs?

Thanks a lot ;)

I don’t know if this is a complete answer for your question but it is a start.