How to debug server based Java applications like J2EE, Struts, Spring applications etc. or a remote Java application?

Learn on YouTube-

  1. Make sure you have started your Java server or application with the debugger parameters like -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
  2. Open CoreIDE.
  3. Open your project.
  4. Go to Run/Debug tab.
  5. Click on Add (+) button it will open a new window. Here you can create your new run/debug configuration.
  6. Go to Java tab in the new window.
    debug java
  7. Enter unique configuration name.
  8. Check the remote checkbox.
  9. Enter desired port number like 8000 as entered in first step.
  10. Configure other fields as needed.
  11. Click on Save button.
  12. Now you can select your configuration from the dropdown and click on Run or Debug buttons to start.
    debug java
  13. You can hover your cursor over the buttons to know the purpose and keyboard shortcut of a button.
  14. You can go to any Java file in the project and click on sidebar to add breakpoints.
    debug java
  15. You can launch the debugger by pressing the () button.

Need more help? Please visit the CoreIDE Wiki for more articles. You can also report an issue or request a new feature.