# DbgValToString Set the variable to the value. ```c++ bool DbgValToString(const char* string, duint value); ``` ## Parameters `string` The name of the thing to set in UTF-8 encoding. `value` The value to set. ## Return Value `true` if the value was set successfully, `false` otherwise. ## Example ```c++ DbgValToString("eax", 1); ``` ## Related functions - [DbgValFromString](./DbgValFromString.md)