Setting Up the Debug Session

Debug the deployed result set filter from Unwired WorkSpace using breakpoints.

Prerequisites
Set debug breakpoints in your filter class.
Task
  1. From Unwired WorkSpace click the down-arrow next to the Debug menu, and select Debug Configurations.
  2. Right-click Java Application and select New.
  3. Name the configuration and change the JPDA port to match that of Unwired Server:
    • Use a standard connection (Socket Attach)
    • Use host 0.0.0.0
    • Set the the port to match the one enabled in Unwired Server (by default 5005)
  4. Click Debug to save the configuration and launch the debugger.
  5. Select Window > Open Perspective > Other > Debug to open the Debug perspective.
    In the left pane you can view the threads running inside Unwired Server. When your filter is called, one of these threads suspends, and the code window highlights where the debugger has stopped in the server. The right pane displays the values of local variables inside your filter.