Setting Up the Debug Session

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

Prerequisites
  1. Set debug breakpoints in your filter class.
  2. Open the Debug perspective from Sybase Unwired WorkSpace by selecting Window > Open Perspective > Other > Debug.
Task
  1. From Sybase Unwired WorkSpace click the down-arrow next to the Debug toolbar icon, and select Debug Configurations.
  2. Right-click Remote 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.