Changing values of non-primitive types
You can use the Streams Debugger to change a value of a non-primitive type.
The
sdb
command supports changing the value of
a tuple attribute that is of any SPL type, when a complete SPL
literal is provided as the new value. For example:(sdb) u 0 wcs {words=1000,chars=100}
lines, 40, int32
wcs, {words=1000,chars=100}, tuple<int32 words,int32 chars>
(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 (wcs
)
and the new field value ({words=1000,chars=100}
).
After successfully executing, the update command displays the tuple
values with the changed value.