What is debugging?
Debugging code is done in order to locate and fix bugs in it. This is an important step towards producing bug free code which in turn creates reliable software.
So now I will explain how to debug tests in IntelliJ IDEA IDE for a maven project in simple steps.
In Java, all the classes are loaded using several
ClassLoader. In this article, we’ll develop a loader for our modules and watch the problems that arrive when working with custom ClassLoaders.
Normally, Java use the system
ClassLoader to load all the classes of our application. So it contains all the classes of our application and all the classes our application needs to work. But the problem is that we cannot add our modules jar files into classpath because the application doesn’t know the modules jar files names.