To enable JPDA for Unwired Platform debugging, start Unwired Server in JPDA mode.
Set up JPDA and attache the Java standard debugger to Unwired Server:
- Change to the <UnwiredPlatform_InstallDir>\Servers\UnwiredServer\bin directory.
- By default JPDA connects over port 5005. Change the port by running djc-setenv.bat from the same folder by issuing this command:
set DJC_JPDA_PORT=<portNumber>
- Start Unwired Server in JPDA mode, which varies, depending on whether or not Unwired Server is installed as a service:
- Once Unwired Server is restarted, verify that JPDA mode is working by running:
netstat -ano | findstr 5005Look for these results:
TCP 0.0.0.0:<JPDAport> 0.0.0.0:0 LISTENING
- 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.