How to debug Arduino IDE with IntelliJ or Eclipse

I don't know anything about this topic but I'd expect you just need to do some research on how to generally debug Java code, rather than looking for information on specifically debugging the Arduino IDE.