Log Point

A Log Point logs or speaks a string or expression. A Log Point can also record messages to the Log window. You can configure the message that appears in the log window.

Related tasks

 

Setting a Log Point

To set a Log Point, follow these steps:

  1. Click the cursor on the line of source code at which you want to set the Log Point.
  2. Click Debug > Set Eventpoint > Set Log Point.
  3. Enter the text of your log message in the Message text box.
  4. Check at least one of these checkboxes:
  5. Click the OK button to confirm your settings.

Example use: If you want to display the value of a variable each time some code is executed, set a log point, check the Log Message and Treat as expression boxes and enter the variable name in the edit box, then click OK.