Please let me know how I can debug any jar file with source code attached in eclipse.
When I tried to debug it, implementation is completed as desired but control never reached the breakpoints.
- Right-click on the jar referenced in your project, select 'properties'
- From 'Java Source Attachment' click 'Workspace...' button
- Select the 'src' folder from the jar project in your workspace
or if you want to do more steps:
- Right-click on project, select 'properties'
- From 'Jave Build Path' select 'Libraries' tab
- Expand (click '+') the jar you want to link source to
- Click 'Source attachment' (it should be saying 'Source attachment: (None)')
- Press the 'Edit...' button
- Follow from the second point in the shorter steps above