This command will print to console the value of the specified player variable. For a list of player variable IDs, please see this page.
player.getav [character variable id]
|Character Variable ID||The ID of the character variable you wish to find out the value of.|
The above command would print the current value of the generous trait variable.