目录

Printing Expressions

With the Evaluate and log feature, you can print specified expressions when the code execution hits a breakpoint.

  1. Set a breakpoint where you need to print the result of an expression.

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

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

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