What language are we talking about?
I pretty much doubt that you want to change the value of a variable while debugging (GDB), rather you would like to take input from the user. Is that right?
In C, basic user input would look something like this.
#include <stdio.h>
int main()
{
char name[50];
printf("What's your first name? ");
scanf("%s", name);
printf("Hello, %s!", name);
return 0;
}
Check printf() out for more details.