facebook

Debugging problem

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #264121 Reply

    breako2
    Member

    Hi!
    I am using Eclipse 3.1 with MyEclipse.
    I am running a simple Java program which connects to a database using a hibernate / JPA to do this.
    I build a jar, put and classpath and run.
    All runs ok, but I can’t debug my own source code even though it is part of the project I am working on. The sourcecode I can’t debug is compiled and put in a jar on the classpath.
    I run using the the java -verbose option and I can see my jar being picked up. However eclipse can’t match any of the classfiles in this jar to my source code even though the source code is part of the project.
    Any idea help greatly appreciated?

    #264160

    Riyad Kalla
    Member

    That’s an odd setup… why do you need to run from the JAR, why not just run the source file? This is likely why the mapping cannot occur.

    Also if you are using ant, and have NOT included the debug=true and debuglevel arguments to your javac task, then your classes are missing the debugging symbols as well.

    #264295

    breako2
    Member

    @support-rkalla wrote:

    That’s an odd setup… why do you need to run from the JAR, why not just run the source file? This is likely why the mapping cannot occur.

    Also if you are using ant, and have NOT included the debug=true and debuglevel arguments to your javac task, then your classes are missing the debugging symbols as well.

    That’s wicked, I used debug=”ON” in my javac ant target and fair play it worked.

    #264305

    Riyad Kalla
    Member

    Oh very cool, I’m glad that did the trick.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Debugging problem

You must be logged in to post in the forum log in