IBM InfoSphere Streams Version 4.1.0

Running the SPL Streams debugger

You can use the SPL Streams Debugger in InfoSphere® Streams Studio to help you debug your SPL applications.

About this task

The SPL compiler provides a command-line debugger (sdb) to help you debug your SPL applications. The debugger is automatically launched in xterm windows if the application is compiled with the debug option (-g).

Streams Studio provides support to launch your application with the sdb debugger. To debug your application, follow this procedure:

Procedure

  1. Build your application with debug information by enabling the Debug your application with SDB option in the SPL application's build configuration. For more information about enabling debug in a configuration, see Defining build options.
  2. Launch your application with the various launch shortcuts or the SPL application launch configuration.
  3. When your application is launched, Streams Studio detects that your application is built with debugging enabled and prompts you to enter the "display" submission-time value. The display submission-time value is needed to display the xterm windows for the SDB debugger. If the DISPLAY environment variable is set in your environment, you can leave this submission-time value blank. Otherwise, you provide the host, port, and display number for this submission-time value. The display submission-time-value can be set as <host>:<port>.<display number>.
  4. The application is launched, and the sdb debugger is available in the xterm windows. You can interact with the sdb debugger with these xterm windows.