Debugger variables can be accessed by using a dollar sign ($), and are considered lvalues:
debug0:14> $x 0 debug0:15> ++$x 1
$x
++$x