4 Replies Latest reply on Apr 10, 2006 10:22 AM by mork

    Cannot get debugging to work with JBOSS deployment and MyEcl

    mork

      I'm using MyEclipse 4.1.1 (current version) for my JBOSS/J2EE project and cannot get debugging working.

      The problem I'm having is that when I try to set a breakpoint in a JAVA file, I get the error that the debugging information for line numbers needs to be added to the project.

      The project under MyEclipse has this option set by default so I added the two following lines to the Ant script's build.xml:

      debug="true"
      debuglevel="lines,vars,source"

      But this didn't fix the problem...I still get the same line number debug info missing errors.

      To start JBOSS, I'm starting it from within MyEclipse using the "-c" option to start the correct EAR/deployment.

      I'm not sure what to try next so any advice or suggestions would be welcome.

      Thanks!!!!

      - M

        • 1. Re: Cannot get debugging to work with JBOSS deployment and M
          asack

           

          "Mork" wrote:
          I'm using MyEclipse 4.1.1 (current version) for my JBOSS/J2EE project and cannot get debugging working.

          The problem I'm having is that when I try to set a breakpoint in a JAVA file, I get the error that the debugging information for line numbers needs to be added to the project.

          The project under MyEclipse has this option set by default so I added the two following lines to the Ant script's build.xml:

          debug="true"
          debuglevel="lines,vars,source"

          But this didn't fix the problem...I still get the same line number debug info missing errors.

          To start JBOSS, I'm starting it from within MyEclipse using the "-c" option to start the correct EAR/deployment.

          I'm not sure what to try next so any advice or suggestions would be welcome.

          Thanks!!!!

          - M


          I'm going to guess:

          Under your JBoss DEbug configuration, there should be a tab called Source. MAke sure your projects that you are debugging are added to the Source tab so you can set break points accordingly.

          • 2. Re: Cannot get debugging to work with JBOSS deployment and M
            mork

            I'm not sure where this "Debug configuration" is. I went to http://localhost:8080 and saw the items:

            * Tomcat status (full) (XML)
            * JMX Console
            * JBoss Web Console

            But none of them seemed to have anything about debugging.

            Could you please be a little more specific about where the debug configuraiton info can be found/modified?

            Thanks very much in advance.

            -- M

            • 3. Re: Cannot get debugging to work with JBOSS deployment and M
              asack

               

              "Mork" wrote:
              I'm not sure where this "Debug configuration" is. I went to http://localhost:8080 and saw the items:

              * Tomcat status (full) (XML)
              * JMX Console
              * JBoss Web Console

              But none of them seemed to have anything about debugging.

              Could you please be a little more specific about where the debug configuraiton info can be found/modified?

              Thanks very much in advance.

              -- M


              No, no, within Eclipse. You said up a JBoss configuration in Eclipse right? (if you did not then you need to follow the tutorials again).

              In Eclipse go to Run->Debug...->select your JBoss configuration you've made->Source tab. If your project is not included, please add it and then run Debug.

              Let me know.

              • 4. Re: Cannot get debugging to work with JBOSS deployment and M
                mork

                Sorry, this is MyEclipse.

                It's already set up to be in "debug" mode for JBOSS 4. I also modified the ant script to have debugging set.

                There are various projects that combine to make the EAR file. Within MyEclipse, these projects too have the generate line numbers (for debuggging) option checked.

                Sorry I wasn't clear about "My"Eclipse over just plain Eclipse.

                Look forward to your reply.

                Thanks.

                -- M