Enabling JPDA

Set up JPDA and attach the Java standard debugger to Unwired Server.

  1. Stop Unwired Server.
  2. Add JPDA information from Sybase Control Center:
    1. Select Servers > ServerName > Server Configuration > Performance Configuration.
    2. Expand Show optional properties.
    3. Add this information to the value of the User Options property. In this example 5005 is the port to which the Java debugger connects:
      -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 
  3. Restart Unwired Server.
  4. Once Unwired Server is restarted, verify that JPDA mode is working and available at port 5005 by running:
    netstat -ano | findstr 5005
    Look for these results:
    TCP  0.0.0.0:<JPDAport>   0.0.0.0:0  LISTENING 
  5. Use a standard Java debugger and attach it to Unwired Server by specifying the correct host and the JPDA port used.
Begin debugging the result filter class with the Java debugger.