SyntaxHighlighter

Tuesday, September 29, 2009

Enabling sitevsion Portal for debugging

List of Modifications
Sitevision related
Path File name Changed Lines
${SITEVISION_HOME}/custom/conf/service debug.conf wrapper.java.additional.11=-Xrunjdwp:transport=dt_socket,server=y,
suspend=n,address=8001

This is java command line switch as explained below
-Xrunjdwp
This option loads the JPDA (Java Platform Debugger Architecture) reference implementation of JDWP (The Java Debug Wire Protocol (JDWP) is the protocol used for communication between a debugger and the Java virtual machine (VM) which it debugs (hereafter called the target VM). This library resides in the target VM and uses JVMDI and JNI to interact with it. It uses a transport and the JDWP protocol to communicate with a separate debugger application.
Operation
Format: -Xrunjdwp:[=],[=]...

Start sitevision in debug mode by running ${SITEVISION_HOME}/bin/debug.bat

Now, sitevision server is running in debug mode with socket for debugging available at 8001 port.

Eclipse settings

Create a debug configuration in eclipse

Create a remote java debugging configuration with values as


Name : MyPortal
Project : PortalProject
Connection Type : Standard (Socket Attach)
Host: localhost
Port : 8001 (same as that you specify in java command switch)

Happy debugging....