How can I debug external jar files

I use some apache libraries in my code. At the moment, I am facing a lot of problems that I need to debug. However, the problem is when I pass data to one of the specified Apache libraries, when I try to enter a method call using netbeans, it just does the processing in the background and is not in the code that I want to view.

Does anyone know how I configure the IDE so that I can also debug apache code? Right now, I'm just linking the JARs to the project, adding them as libraries.

+4
source share
1 answer

You need to attach the source jar (e.g. commons-lang-2.4-sources.jar) to your dependency, instructions here

I also recommend using Maven2 to manage project dependencies, I have not used Netbeans for at least 5 years, but both Eclipse and IntelliJ have Maven plugins that will import all your dependencies and automatically link them to / javadoc jars sources.

+3
source

All Articles