## 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 Pause Point
- Clearing a Pause Point

##### 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:

- Log Message—check to have the IDE display your message in a Message window when program execution reaches the Log Point
- Speak Message (Windows OS)—check to have the IDE use the sound capabilities of the host operating system to speak the message that you enter in the Message text box.

NOTE (Windows) Install the Speech software development kit (SDK) in order to have the Speak Message feature work correctly.

- Treat as Expression—check to have the IDE evaluate the text you enter in the Message text box as an expression. For example, if you enter the name of a variable in the Message text, the debugger writes the value of that variable in the console output window.
- Stop in Debugger—check to stop program execution in the debugger

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.