Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-1887

Wrap the debugging variables in conditional expressions to enable them easier

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Labels:
      None

      Description

      The activemq shell script for startup contains some variables for debugging, but they are commented out. This requires hand editing instead of just setting a variable on the command line to conditionally. So I wrapped the debug variables in conditionals to make it easier to enable debugging features. So now if I want to enable remote debugging on ActiveMQ, I do the following:

      [apache-activemq-5.1.0] $ ACTIVEMQ_DEBUG=true ./bin/activemq 
      Listening for transport dt_socket at address: 5005
      ACTIVEMQ_HOME: /Users/bsnyder/amq/apache-activemq-5.1.0
      ACTIVEMQ_BASE: /Users/bsnyder/amq/apache-activemq-5.1.0
      Loading message broker from: xbean:activemq.xml
      ...
      

      Remote debugging and YourKit debugging can now be enabled easily without a requirement to edit the script.

        Activity

        Hide
        rajdavies Rob Davies added a comment -

        patch applied in SVN revision 691131

        Show
        rajdavies Rob Davies added a comment - patch applied in SVN revision 691131

          People

          • Assignee:
            rajdavies Rob Davies
            Reporter:
            bsnyder Bruce Snyder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development