Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to debug a jar file in eclipse?...

 
Sandy Marar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a restfb jar which I am referring to in the classpath of my project.I want to debug the jar file in order to understand what is happening inside?...I have already got the source code of the jar file in hand.But I don't know how to attach it to the project and hence debug?..
 
Campbell Ritchie
Sheriff
Pie
Posts: 49789
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume you have imported the .jar and put it in your classpath? Then you can set some breakpoints and use the debugging view rather than the ordinary Java™ view. Use three f-keys, I think f6 f7 and f8, for step-through, step-across and step-return.

Since this appears to be an Eclipse-related question, I shall move it to our IDEs forum.
 
Sandy Marar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for moving it to the appropiate forum. Actually I know how to debug ,but where do I get the source code of the jar file attached so that run it down line by line.
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Project->properties->libraries->expand jar->source attachment->edit (to point to source location)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic