Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3583

Can't attach remote debugger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.6.0
    • None
    • Spring Container
    • None

    Description

      Hi.
      I've adjusted my run_james script as follows

      #!/usr/bin/env bash
      if [ "$GLOWROOT_ACTIVATED" == "true" ]; then
          GLOWROOT_OPTIONS=" wrapper.java.additional.15=-javaagent:/root/glowroot/glowroot.jar"
      fi
      if [ "$DEBUG" == "true" ]; then
          DEBUG_OPTIONS=" wrapper.java.additional.16=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
      fi
      
      exec ./wrapper-linux-x86-64 ../conf/wrapper.conf wrapper.syslog.ident=james wrapper.pidfile=../var/james.pid wrapper.daemonize=FALSE"$GLOWROOT_OPTIONS$DEBUG_OPTIONS"
      

      hoping to see the server wait for the connection and being able to attach a remote debugger, but it doesn't work.

      How does this wrapper exactly work and how am I supposed to change the above script to make it work?

      Attachments

        Activity

          People

            Unassigned Unassigned
            pec Cosimo Damiano Prete
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: