Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging jar file with source code attached in eclipse

Tags:

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.

like image 789
Kaveesh Wadhwa Avatar asked Feb 07 '11 11:02

Kaveesh Wadhwa


1 Answers

  • 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
like image 130
cedric Avatar answered Oct 25 '22 06:10

cedric