facebook

Debugging Problem

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    fetik3
    Member

    MyEclipse Version: 5.0.1 GA
    Build id: 20060810-5.0.1-GA

    I have three projects in a workspace – two are jars, one is a war. When the war gets built (outside of MyEclipse, with Maven) and deployed, the WEB-INF folder contains both jars.

    I’ve set up two breakpoints – one in jar ‘a’, and the other in jar ‘b’.

    Jar ‘a’ has a dependency on jar ‘b.’

    After starting Tomcat via/MyEclipse, it accurately pauses at each breakpoint, however whereas jar ‘a’ works as expected (I’m able to step through the source), jar ‘b’ brings me to a “Class File Editor” tab that states “Source not found.”

    What could be the difference between the two jars that would allow one to find the source, but not the other?

    Thanks in advance!

    #264348

    Riyad Kalla
    Member

    I have three projects in a workspace – two are jars, one is a war. When the war gets built (outside of MyEclipse, with Maven) and deployed, the WEB-INF folder contains both jars.

    Don’t you mean in the WEB-INF/lib directory?

    After starting Tomcat via/MyEclipse, it accurately pauses at each breakpoint, however whereas jar ‘a’ works as expected (I’m able to step through the source), jar ‘b’ brings me to a “Class File Editor” tab that states “Source not found.”

    What could be the difference between the two jars that would allow one to find the source, but not the other?

    So the overall structure of your project is:

    
    + Web Project
      + Project A (Dep of Web)
        + Project B ( Dep of A)
    

    And all 3 projects are MyEclipse projects (1 Web, 2 Java Projects) with those dependencies setup?

    How are you building these JARs? Are you making sure (assuming you are using ant) to build them with debug turned on in the javac task?

    #264390

    fetik3
    Member

    @support-rkalla wrote:

    Don’t you mean in the WEB-INF/lib directory?

    Yes, the WEB-INF/lib directory.

    @support-rkalla wrote:

    So the overall structure of your project is:

    
    + Web Project
      + Project A (Dep of Web)
        + Project B ( Dep of A)
    

    And all 3 projects are MyEclipse projects (1 Web, 2 Java Projects) with those dependencies setup?

    The project as it is contained in MyEclipse is as 3 separate, flat projects (note – I don’t use Eclipse to build the binaries, so they are treated separately):

    
    + Web Project
    + Project A (Dep of Web)
    + Project B (Dep of A)
    

    @support-rkalla wrote:

    How are you building these JARs? Are you making sure (assuming you are using ant) to build them with debug turned on in the javac task?

    I’m doing this through Maven. All are built the same way, with the same configuration – what is confusing to me is that if I add a break point in Project A, it pauses and jumps to the appropriate line in the source code. If I add a break point to Project B, it pauses, but doesn’t load the source code. So, it knows that a break point has been set, but can’t seem to find the file after it has pauses (which, from a user standpoint seems a bit odd, since it’s the same file that I set the break in 🙂

    #264397

    Riyad Kalla
    Member

    What do the build path references between the projects look like? Also are they appropriate setup on the “project reference” properties to refer to eachother?

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