dump [procedure] [>file]
The dump subcommand displays the names and values of all variables in the specified procedure. If the procedure argument is . (dot), all active variables are displayed. If the procedure argument is not specified, the current procedure is used. If the >file option is used, the output is redirected to the specified file.
The dump subcommand can be run only while the dbx debug program is running. dump redirects output to the specified file.
dump
dump add_count
dump > var.list