dumpObj ?-f (m | m/n)? ?-a? ?-r? ?-u? vars...
Write the contents of the Tcl_Obj (in memory) corresponding to the specified variables. By default, this command writes the stored UTF-16 bytes (in hexadecimal) of all the Tcl_Obj's corresponding to the specified arguments. It may also write the corresponding string representation (in UTF-8 hexadecimal).
The options have the following meaning:
-aboth UTF-8 and UTF-16 representations
-fformat of hexadecimal string
-rraw (no headers)
-uUTF-8 representation
--end of options
The value of the -f option can take the form m or m/n where m is the number of blocks per row and n is the number of elements per block. Note that an element corresponds to 4 bytes in UTF-16 and 2 bytes in UTF-8.
If no option -f is specified, then the full string is printed without any spaces.
This command is useful only for low-level debugging. Here are a few examples displaying the contents of two variables named var1 and var2:
dumpObj $var1 $var2
dumpObj -u -- $var1 $var2
dumpObj -a -r -- $var1 $var2
dumpObj -f 4/2 -- $var1 $var2