Download the source code, install Cygwin, JDK and VS2010: https://www.cnblogs.com/jhxxb/p/12558970.html
Create a VS project
# Open CMD cd jdk8u \ Hotspot is available \ the make \ Windows C: \ VS2010 \ VC \ bin \ AMD64 \ vcvars64.bat the SET HOTSPOTMKSHOME = D: \ the OpenJDK \ cygwin64 \ bin # path in front of cygwin, let's link.exe priority VS2010 level is higher than the cygwin SET path =% path% ; D: \ the OpenJDK \ cygwin64 \ bin create.bat D: \ the OpenJDK \ jdk1. . 7 .0_80
Open in VS2010
debugging
Look at the success of direct F7 compile jvm.dll, jvm.exp debug symbol files
Open the project properties, set the startup parameters java
Open share \ vm \ runtime \ thread.cpp file, make a break point in create_vm method, F5 to start debugging.
Other versions of Visual Studio debugger
Modify the file hotspot \ make \ windows \ get_msc_ver.sh, directly specify MSC_VER and MSC_VER_RAW and VS version number