How to debug Arduino IDE with IntelliJ or Eclipse

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