IntelliJ IDEA: ClassNotFoundException when Debug starts, run / run works

I have a Java Maven Project running in Eclipse, worked on it for several days, and then imported it into IntelliJ IDEA, working on it again for several days.

Normal Run / Execution in IDEA and through shell works, but not Debug.

When I click the error icon for debugging, it opens the URLClassLoader.java file and points to the line “throw new ClassNotFoundException (name)” and pauses debugging, if I click “Resume Debugging”, it shows several classes that do not belong to my project. I can press the resume button endlessly, it shows the same classes, also ClassNotFoundException again and again in a continuous loop and does not debug my source.

If I click Build -> Rebuild Project, it will be indicated on the Debug icon. Hot swap error myClassname: schema change not implemented; myClassname: operation not supported by VM "

In the "Debugging" window in the "Variables" section it says: "Frame is not available"

The debugging of this project in IntelliJ IDEA worked earlier, what is wrong now?

+10
source share
3 answers

It looks like you have an exception checkpoint for a ClassNotFoundException. Try to open Run | View breakpoints ... and uncheck the breakpoint in the Java Exclusion Checkpoints section.

+24
source

This is really helpful. Go to your breakpoints in debug mode and make sure to deselect all breakpoints first, and then select only those in your class.

0
source

in my situation, just neglect the dropdown language of assessment. enter image description here

0
source

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


All Articles