I'm trying to set up the spring source code in an eclipse project so that I can step through it with the debugger.
Currently, the specific line of code I'm trying to step into is this one:
ApplicationContext context=new ClassPathXmlApplicationContext("classpath:spring.xml");
ApplicationContext and ClassPathXmlApplicationContext are part of org.springframework.context:
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
Under "Java Build Path"=>"Libraries", I've specified the path to the file org.springframework.context-sources-3.1.3.RELEASE.jar for org.springframework.context-3.1.3.RELEASE.jar.
I'm using spring 3.1.3 with eclipse indigo 3.7.2.
Update:
I tried adding the sources.jar files to the source tab under "Debug Configurations" but eclipse is still not finding the source.
Try below:
Menu Option Run -> Debug Configurations -> Java Application
Provide required inputs in "main" tab
Add source jar file in source tab
Press OK and run this newly created option to debug.
If running remote, then select Remote Java Application
in debug configuration's left pane.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With