Debug eclipse IDE itself

前端 未结 5 1256
别跟我提以往
别跟我提以往 2020-12-14 13:21

I would love to learn how to debug eclipse IDE. Back to the time when I was using VS for .NET development, I can attach VS to a process at anytime and start to trace down th

5条回答
  •  余生分开走
    2020-12-14 13:41

    Edit your eclipse.ini file an add the following to the bottom (beneath -vmargs):

    -Xdebug
    -Xnoagent
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
    

    Then in another Eclipse of the same version, you can import the plugins you are interested in debugging. File -> Import ... -> Plug-in Development -> Plug-ins and Fragments. Import From the active platform, and Import As "Projects With Source Folders", on the next tab select the plugins you are interested in.

    Set breakpoints as appropriate.

    Then create in Debug Configurations, create a new "Remote Java Application". localhost, port 8000. Add the Java projects on the source tab, and debug.

提交回复
热议问题