简体   繁体   中英

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.

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". So my question is 1,)how to do the setting to let me debug the jdk source code successfully? 2,) If there are other places I need to set? 在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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