Specific methods to solve F5 debugging can not enter
There is not a lot of nonsense, just look at the picture above:
1. Open debug Configurations...
2. Open the JRE interface. This is not the default interface. I have set it before, but it’s okay. Let’s continue.
3. Click Alternate JRE: Installed JRES in that line... I show JDK1.8 here because it has been set and has not been modified. It should be jre
4. Click on your JRE (I set it so I display JDK), and then click Remove
5. This is the interface after Remove. Next, we click the Add... button
6. Select the bottom one, then next
7. Click Directory... to find the installation directory of your JDK.
Click to select the folder:
8. Click Finish
9. Select JDK1.8, and click the Apply and Close button
10. . Click Run
Perfect and you are now done!
Take a look at the effect:
Put a breakpoint on the System.out.println(arr); line, and then press F5, you can see that you have jumped into this method.
Perfect! perfect!