简体   繁体   English

如何调试Eclipse中的openjdk 9(主要是热点)源代码?

[英]How to debug the openjdk 9 (mainly the hotspot) source code in Eclipse?

I want to debug the hotspot source code , such as set some breakpoints in the Native Code,to learn it. 我想调试热点源代码,例如在本机代码中设置一些断点,以便学习它。 So I built the openjdk 9 source code by the Eclipse and successfully, and below is built setting and the output of the built. 所以我成功地用Eclipse构建了openjdk 9源代码,下面是构建设置和构建的输出。

Builder设置和内置输出文件夹

Then I tried to configure the "Debug Configurations", however I don't know how to set the c/c++ application, someone advise it to "openjdk/hotspot/build/Linux/linux_amd64_compiler2/jvmg" for JDK 7 , however I cannot find it in the built output folder for jdk 9, I tried to set it to "~/jdk9/build/linux-x86_64-normal-server-fastdebug/jdk/java" then click button "debug" to debug it, however it failed with information "No source code available for main". 然后我尝试配置“调试配置”,但是我不知道如何设置c / c ++应用程序,有人建议将它用于JDK 7的“openjdk / hotspot / build / Linux / linux_amd64_compiler2 / jvmg”,但我不能在jdk 9的内置输出文件夹中找到它,我尝试将其设置为“〜/ jdk9 / build / linux-x86_64-normal-server-fastdebug / jdk / java”然后单击“debug”按钮进行调试,不过它信息失败“没有可用于主要的源代码”。 So my question is 1,)how to do the setting to let me debug the jdk source code successfully? 所以我的问题是1,)如何设置让我成功调试jdk源代码? 2,) If there are other places I need to set? 2,)如果还有其他地方我需要设置? 在此输入图像描述

通过将调试级别设置为JDK 9的slowdebug来解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM