Parallels H-Sphere Documentation Developer Guide


Running H-Sphere in Debug Mode

(versions 2.3 and higher)

Last modified: 18 Jan 2005


WARNING: This documentation covers Parallels H-Sphere versions up to 3.1. For the latest up-to-date Parallels H-Sphere documentation, please proceed to the official Parallels site.

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.

© Copyright 2018. Parallels Holdings. All rights reserved.