How to debug Arduino IDE with IntelliJ or Eclipse

I've successfully built the Arduino IDE from source as described on the Wiki - Building-Arduino page.

I'd like to debug the Arduino IDE with Jetbrains IntelliJ or Eclipse to analyze some internal problems. Where can I find documentation how to debug the IDE?

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.

I figured out myself. I could not get Jetbrains IntelliJ up and running, but switched to Eclipse which works after a tricky undocumented configuration.

Could you please elaborate more on the configuration needed to be done to 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.