How to debug openjdk 9 source code (mainly hotspot) in Eclipse?

I want to debug the source code of hotspot, for example, set some breakpoints in the Native Code to recognize it. Therefore, I built the openjdk 9 source code using Eclipse and successfully, and below is the built-in configuration and output.

Builder setup and built-in output folder

Then I tried to set up "Debug configurations", however I don’t know how to install the c / C ++ application, someone advises it to "openjdk / hotspot / build / Linux / linux_amd64_compiler2 / jvmg" for JDK 7, however I can not 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 the "debug" button to debug it, however it doesn’t failed with the information "No source code for the main one." So my question is: 1) how to do the setup so that I can successfully debug the jdk source code? 2,) If there are other places that I need to install? enter image description here

+5
source share
1 answer

Issue resolved by setting debug level on slowdebug for JDK 9

+1
source

Source: https://habr.com/ru/post/1263837/


All Articles