How to debug Arduino IDE with IntelliJ or Eclipse

michaelz:
Could you please elaborate more on the configuration needed to be done to Eclipse?

I leave it up to the Arduino developers to write official documentation how to debug the Arduino IDE in Eclipse.