Stream debugging based on operator ports
The Streams Debugger provides a port-centric view into the stream application.
To set breakpoints, and trace points and to inject new tuples into the application's data flow, you must specify a port on which to operate. Each operator in a stream application can have zero or more input ports and zero or more output ports. In thesdb command, you specify a particular port by identifying three pieces of information.
- The name of the operator.
- The port type:
ifor input port,ofor output port - The port index; zero for the first port that is specified in the SPL source, and so forth.
Here is an example of a port specification in an sdb command: CountAllLines
o 0
Where CountAllLines is the operator name, o identifies
an output port and 0 refers to the first output port
defined for the operator.