3 Replies Latest reply on Aug 10, 2012 4:10 PM by hendelc

    Remote Debugging?

    hendelc

      I am trying to setup remote debugging for a child container using fuse-fabric-7.0.0.fuse-061, the documentation states there is an "enable remote debugging" checkbox but using  fmc-1.0.0.fuse-00-061 I do not see that checkbox anywhere, only the JVM options.

       

      I also tried to use the JVM options, but the process still does not show any of my options once the container is started. Same thing goes if I use the command line:

      container-create --parent FuseManagementConsole --profile cxf --jvm-opts "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" cxf1

       

      Nowhere does the java process show the command line with my params.

       

      Any help in getting remote debugging set up would be appreciated.

       

      --Christian

        • 1. Re: Remote Debugging?
          stlewis

          Yup, this is a known issue (FABRIC-123) that should be fixed in the next release.

          • 2. Re: Remote Debugging?
            hendelc

            Thanks,

            Any chance of a date for the next release?

             

            --Christian

            • 3. Re: Remote Debugging?
              hendelc

              Nevermind I looked at the source and found a workaround:

              Prefix the jvm-opts with "-Xmx" and then the size you want (512m) etc and then all of your extra JVM options, debugging et al.

               

              code snippet (ChildContainerProvider:75) :

                              if (options.getJvmOpts() == null || !options.getJvmOpts().contains("-Xmx")) {

                                  jvmOptsBuilder.append(" -Xmx512m");

                              } else if (options.getJvmOpts() != null) {

                                  jvmOptsBuilder.append(" ").append(options.getJvmOpts());

                              }

               

              --Christian