To print variables values:
Select Print Variables from the Debug Menu. PowerBuilder sends the list of variables and their values to the your default printer.