One Day Sec

How can I set up remote debugging of Zimbra using IntelliJ IDEA?

Copy the Zimbra jar files from the server (e.g., `/opt/zimbra/common/jetty_home/lib/`) to a local directory, import them into a new Java project in IDEA, add breakpoints to relevant classes, and configure a Remote JVM Debug run configuration with the same JDWP parameters (e.g., `-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000`). Start debugging with Shift+F9; a successful connection shows "Connected to the target VM".
IDEAremote debuggingZimbrajar filesJDWPbreakpoints

Browse all Q&A →