The IDE provides debugging facilities, such as stepping, examining data item values and setting breakpoints. To see some of these facilities:
A console opens for running the built programs.
The source code for locking.cbl opens in the COBOL editor. The first statement DISPLAY SPACE is highlighted in yellow, with a yellow arrow pointing to it. This is the statement to be executed next.
This statement displays some information about the application in the console.
Step Over executes all the code for a PERFORM or CALL statement in a single step.
The console now appears and waits for your input.
Notice that the statement "EVALUATE CHOICE" is now highlighted ready for execution and that the value of the choice variable is now "5". You can see this by hovering over the choice variable in the Evaluate statement, and also by looking in the Autos pane at the bottom.
If the Autos pane is not visible, open it by clicking Debug > Windows > Autos.
This opens a separate pane, the Watch pane, which shows the values of watched variables.
You can close Visual Studio now. You do not need to explicitly save anything, because the files are automatically saved when you build them.