March 19, 2013

Enable debugging and add source code to JAR in eclipse

Enable Debugging
  • Change eclipse perspective to debug. Click on menu item Run -> Debug configuration -> click on “Source” tab -> check all the projects with java source and add these projects. Now breakpoints can be placed in various points in different projects and code can be debugged accordingly.
Add Source code to JAR
  • Right click on project -> Java Build -> Libraries -> expand the desired library. Source elements should be set as none initially. Java source can be attached to that JAR by clicking on “edit” and browsing to the respective source code (“src” folder). E.g.
Add Source to JAR
Figure
 

No comments:

Post a Comment