Debug eclipse IDE itself

前端 未结 5 1238
别跟我提以往
别跟我提以往 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条回答
  •  -上瘾入骨i
    2020-12-14 13:38

    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 the problem.

    Remote debugging is also possible in Java with the Java Platform Debugger Architecture (JPDA), you just need to start the application you want to debug with remote debugging enabled. Here is an article showing how to do this and how to configure Eclipse to debug a remove application.

    Note that starting from Java 5, you should prefer the -agentlib:jdwp option over the -Xdebug and -Xrunjdwp options as explained in Sun VM Invocation Options.

    Update: Eclipse is a Java application so it should be possible to add the options mentioned in the article in eclipse.ini. Never tried that though (I missed the fact that you want to debug Eclipse itself).

提交回复
热议问题