With the Evaluate and log feature, you can print specified expressions when the code execution hits a breakpoint.
- Set a breakpoint where you need to print the result of an expression.

- Right-click the breakpoint and choose More from the shortcut menu.

- Select Evaluate and log and enter the expression to be printed in the text box below.

- Start debugging. When the program hits a breakpoint, switch to the Console pane in debug mode, where the expression print results will be displayed.
