aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to debug a jar file in eclipse?... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to debug a jar file in eclipse?..." Watch "How to debug a jar file in eclipse?..." New topic
Author

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

Sandy Marar
Greenhorn

Joined: Dec 22, 2011
Posts: 16
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

Joined: Oct 13, 2005
Posts: 36592
    
  16
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

Joined: Dec 22, 2011
Posts: 16
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

Joined: Jul 26, 2007
Posts: 9995
    
    7

Project->properties->libraries->expand jar->source attachment->edit (to point to source location)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to debug a jar file in eclipse?...
 
Similar Threads
How to pack jar file with including sources for debug
Changing properties file in a jar...
System.out.println prints nothing??
Help with java mail.
how sax parser is installed or JAR FILE OF SAX API