Displaying operators, ports, and schema information

The Streams Debugger provides some commands for inspecting the application elements that can be observed while debugging.

The list-(o)perators command provides two different functions.

When the command is run with no parameters, it displays a list of all the operators available in the debug session. This list includes all operators that are contained in the PE currently being debugged.

[Switching to thread 0x42088940 (LWP 14716)]
Breakpoint 2, SPL::_Operator::Writer_Base::processRaw (this=0xaa9f4c0,
    tuple=@0xaac0480, port=0) at ../operator/Writer.cpp:19
13      void MY_BASE_OPERATOR::processRaw(Tuple & tuple, uint32_t port) {
Current language: auto; currently c++
(sdb) o
    #in #out Operator Class
    0 1 Data Data
    1 0 Writer Writer
    1 1 CountOneLine CountOneLine
    1 1 CountAllLines CountAllLines
(sdb)

The first two columns of output show the number of input ports and output ports for the operator. The third column shows the operator name. The last column shows the operator's implementation class name.

When the list-(o)perators command specifies the optional operator name parameter, the command displays the schema definitions for all ports for the specified operator. This output shows the schema definition for one input port and one output port for the CountAllLines operator.
(sdb) o CountAllLines
   Input port: CountAllLines i 0
    lines : int32
    wcs : tuple<int32 words,int32 chars>
   Output port: CountAllLines o 0
    lines : int32
    wcs : tuple<int32 words,int32 chars>
(sdb)
You can optionally specify a port type and port index to display the schema for a single port for the operator. This output shows the schema for the specified input port index, 0, for the CountAllLines operator.
(sdb) o CountAllLines i 0
   Input port: CountAllLines i 0
    lines : int32
    wcs : tuple<int32 words,int32 chars>
(sdb)