Intellij idea can’t debug solution

inteliij idea What should I do if I cannot debug? The functions in debug are grayed out.

If you are using an external project, you may not add the library that comes with this project;

Solution:

Click the + sign in file->project structure->Libraries to add your current project, the problem will be solved.

Now you see if debugging has come back to life!

Go and debug

 

If you still cannot debug intellij after this step, you can try to set a breakpoint, you can set the breakpoint at the beginning of the main method.

I personally tried it myself, and I often have this kind of problem. You can't debug without interruption.

I hope everyone can advise! ! !

Guess you like

Origin blog.csdn.net/q1246192888/article/details/105641312