Article ID: 3335, created on Nov 30, 2007, last review on May 1, 2014

  • Applies to:
  • H-Sphere


To run H-Sphere in debug mode, do the following:

  1. Compile classes with debug information:
    ./configure -javac --with-params="-g"
    make shiva
  2. Set the following option "on" in jserv.conf to be able to launch JServ manually:
    ApJServManual on
  3. Create shell script to run JServ in debug mode:
    java -Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n \
    org.apache.jserv.JServ $properties $1 2 >> $log
    # address=9999 - port to which the debugger may be attached
    # choose any available port you like
  4. In IDE, set the following debug configuration:
    Transport: Socket
    Debuger Mode: Attach
    Host: localhost
    Port: 9999
  5. Start Apache and run after Apache start. Set IDE breakpoints and launch debug from IDE.

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF