Natural for Visual Studio Code 1.2.1 | Debugging the Natural Application | Using Logpoints
 
Using Logpoints
A logpoint is a special kind of breakpoint that logs a message to the Debug console instead of pausing program execution.
Right-click the gutter next to a line of code to open the following context menu:
Add Logpoint command in context menu
Choose the Add Logpoint command and enter the log message in the provided text field.
Sample logpoint
When the logpoint is reached, the variables enclosed by parentheses are replaced with the current variable values.
Logpoint message
With logpoints, you can observe program execution for suspicious behavior without changing the Natural source code. Logpoints can easily be added and removed using the source code editor UI, providing convenient support for temporary diagnostics during development.