3 Replies Latest reply on Feb 2, 2005 5:33 AM by pablojavierpy

    Debug JBoss Sourcecode

    sysuser1

      Hello everybody,

      I want to debug the sourcecode of JBoss 3.2.6, but do not know how to do this.
      Could anyone help me please.

      Thanks.

        • 1. Re: Debug JBoss Sourcecode
          pablojavierpy

          I think you might get a better answer in "Jboss Application Server Developer" forums".

          Anyway, I will try to help. Here is a list of things you need in order to debug JBOSS AS 3.2.6.

          1) Get the 3.2.6 (you should consider 3.2.7 now) source code (duh!)
          2) Pick a debugger (I.E., the one that comes with Eclipse IDE)

          If you are using Eclipse IDE, unzip source code and mount it as an Eclipse Java project and you can run Jboss's main class (org.jboss.Main) in debugger mode.

          That is all you need.

          If you want to use other debuggers, I am lost since Eclipse is the only thing I use nowadays.

          • 2. Re: Debug JBoss Sourcecode
            sysuser1

            Hello Pablo,

            thanks for your answer. But I have one more question: How to mount these folders from the source code to an Eclipse Project? Do I have to create all folders and add all .java-Files (which would be much work) or is there an easier way?

            Thanks in advance

            • 3. Re: Debug JBoss Sourcecode
              pablojavierpy

              Just create a new Java Project using JBoss' source folder as project folder. First of all, Eclipse will select as source folders, the ones that contain ".java" files so there would not be extra work there.

              Then, you are done.

              org.jboss.Main is the class you should run if you want to perform some debugging.

              Check out "Problems" view in order to know if there was an error when project was created.

              If you have a machine with low RAM memory, Eclipse will run out of memory where compiling the project.

              Hope this helps.