Changing attribute values in tuples

With the Streams Debugger you change values during a debugging session.

The sdb command is used to change values in tuples in the following cases:

  • When a tuple is associated with a currently stopped breakpoint.
  • When a tuple is associated with an inject point.

To change a value in a tuple, use the update command:

u <probe-point-id> <Attribute-name> <Attribute-value>
For example:
(sdb) u 0 lines 30
    lines, 30, int32
    wcs, {words=229,chars=2111}, tuple<int32 words,int32 chars> u 0 lines 30
(sdb)

The command identifies that the tuple for breakpoint identifier 0 is to be modified, followed by the name of the field to be modified (lines) and the new field value (30). After successfully running, the update command displays the tuple values with the reflecting the changed value.