A bit more detailed information is here:
Debug Viewer is used to debug the scripts, where you can find the value of variables.
To know what value variable is holding, you have to run in debug mode or put a break point at the variable.
Debug Viewer is having 3 tabs.
Watch: where you can find the value of a variable of your interest. In your script you might have certain number of variables, but you want to know a specific variable.
To view the value of a var. following are two approaches
right click on the variable name in your script and then choose "Add to watch",
The other way is, in the "name" cell of Watch, double click on the cell and enter the variable name.
During execution you can find the value of that var.
Variables: All variables in your action are displayed with values.
Command: You can set the value of a variable during run time using Command.
For Ex. you are already in debugging, where the value of a var is having set some value, but you want to try with different value.
Ex, during debug the value of x say 10, but you want to test with 20.
During those scenarios when the debug pointer is at x, in command tab you enter x=20 and then click Enter.
Then when you resume your debug the value of x now set to 20 during run time.
I hope the above helps.
If it is not clear, let me know.
Thanks,
Uday
QTP / UFT Videos