Natural for Visual Studio Code 1.2.1 | Debugging the Natural Application
 
Debugging the Natural Application
 
Starting a Debug Session
Debugging with an Attach Launch
Controlling Execution
Running to the Cursor
Displaying Variables
Setting Line Breakpoints
Using Logpoints
Setting Data Breakpoints
Setting a Value
Evaluating Variables by Hovering
Watching Variables
A Natural application is executed and debugged on the Natural Development Server (NDV) to which the project is connected. The project launch determines which server and user to use and specifies the session parameters and code page for the application. See Maintaining Launches.
The Natural debug adapter connects Visual Studio Code to the Natural Development Server (NDV). Like the language server that supports the source editor, the debug adapter is a Java process that runs in the background. It starts when you start a debug session and stops when you end the session.
The debug adapter starts the application, sends the breakpoints to the server, and returns the variables, call stack, and output to the editor.
Note: 
The browser shows the output of the application. The Tomcat server renders the output and must be prepared as described in Preparing the Natural Output.
The features for debugging Natural applications are described in the topics below.