You can use the SPL Streams Debugger in Infosphere®streams Studio to help you debug your SPL applications.
First, additional software xterm is required,
Install via sudo yum install xterm
About this taskthe SPL compiler provides a command-line debugger (SDB) to the help you debug your SPL applications. The debugger is automatically launched in xterm Windows if the application are compiled with the debug option (-g).
Streams Studio provides support for launch your application with the SDB debugger. To debug your application, follow this procedure:
Procedure
- Build your application with debug information by enabling the debug your application with SDB option in the SPL AP Plication ' s build configuration. For more information about enabling debug in a configuration, see Defining Build Options.
- Launch your application with the various Launch shortcuts or the SPL application Launch configuration.
- when your application is launched, Streams Studio detects that your application is built with debugging-enabled and prompts to enter the "display" Submission-time value. The display Submission-time value is needed to display Thexterm windows for the sdb debugger. If thedisplay environment variable is set in your environment, can leave this submission -time value blank. Otherwise, provide the host, port, and display number for this submission-time value. The display submission-time-value can be set As.
- The application is launched, and the SDB debugger are available in the xterm windows. You can interact with the SDB debugger with these xterm windows.
Two ways to run SPL Streams debugger (SDB)