Setting Up the Debug Session

Debug the deployed result set filter from SAP Mobile WorkSpace using breakpoints.

Prerequisites
  1. Set debug breakpoints in your filter class.
  2. Open the Debug perspective from SAP Mobile WorkSpace by selecting Window > Open Perspective > Other > Debug.
Task
  1. From SAP Mobile 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 SAP Mobile Server:
    • Use a standard connection (Socket Attach)
    • Use host 0.0.0.0
    • Set the the port to match the one enabled in SAP Mobile 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 SAP Mobile 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.