Using Viewers to Debug an Application

Sybase CEP Studio viewers have a step-through feature that you can use as an aid to debug applications. It helps you to track when rows arrive in different streams within a specified interval.

To use the debug features effectively, follow these steps:

  1. Open viewers for all the streams and named windows you want to analyze.
  2. Pause the viewers.
  3. Choose a viewer (called the primary viewer in these instructions) displaying rows with timestamps from which you will start tracking.
  4. Decide whether you want to track forward or backward from the timestamp of a specific row and then click a row with the appropriate timestamp in the primary viewer.
  5. Click either the Step Forward or Step Backward button on the viewer toolbar (or click either Step Forward or Step Backward on the Debug menu).
    • Step Forward selects all rows in all viewers with a timestamp equal to or greater than the timestamp of the selected row in the primary viewer, but no greater than the timestamp of the subsequent row in the primary viewer. The viewers display selected rows in red, with a red dot to their left. If you click one of these rows, the dot changes to purple and the text changes to black.

    • Step Backward selects all rows in all viewers with a timestamp no greater than the timestamp of the selected row in the primary viewer, but greater than or equal to the timestamp of the previous row in the primary viewer. The viewers display selected rows in red, with a red dot to their left. If you click one of these rows, the dot changes to purple and the text changes to black.

  6. Click the Timestamp column heading to toggle between new rows being inserted at the top of the viewer and new rows being inserted at the bottom of the viewer.


Created March 8, 2010. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com