Debugging with the Streams Debugger
When the application is started either in stand-alone mode or distributed mode, the Streams Debugger displays initial messages and presents a command line.
For instance, start the WordCount sample in stand-alone mode.
./output/bin/standalone file=../Makefile
IBM Stream Debugger (SDB), pid: 3847
Standalone application execution is suspended.
Set initial probe points, then run "g" command to continue execution.
(sdb)
The file parameter on the standalone
invocation
is an option specific to the WordCount application that is being debugged.
It specifies the file to be used for counting the lines, words, and
characters. In this example, the Makefile
that sits
in the application directory is being used.
The sdb
output explains that the debugger is active
and identifies that it is either running in a stand-alone application
or in a distributed application. At this point, the debugger suspends
processing and awaits input on the command line.