Performing visual debugging for an application
After a debug session is started with visual debugging enabled, you can step through your program and visualize the call stack, and set or remove breakpoints in the Visual Debug view.
About this task
Procedure
- Step over a few times until you reach a PERFORM statement
in your COBOL program.

- Do a step into. A new stack frame 700-OPEN-FILES appears, and the node 700-OPEN-FILES is highlighted in the Visual Debug view. In the editor, the entry of paragraph 700-OPEN-FILES is located and highlighted.

- Show the entire paragraph diagram. Click the arrow on the right side of the visual debugging toolbar icon, clear the Only Show Current Execution Path option. The Visual Debug now shows the entire paragraph diagram for the current program. For more information about the filter, see Only Show Current Execution Path.

- Set a paragraph entry breakpoint by right-clicking a paragraph
node in the Visual Debug view and clicking Toggle Breakpoint.
In this example, a breakpoint is set on the 220-PROCESS-DELETE-TRAN paragraph. A breakpoint indicator icon is displayed on node 220-PROCESS-DELETE-TRAN to show the existence of a breakpoint on this paragraph.

- Resume the debug session. The breakpoint is hit, and the stack trace is highlighted in the Visual Debug view.

- When you no longer need a breakpoint, remove the breakpoint
by right-clicking the node the breakpoint was set on and clicking
the Toggle Breakpoint action again. The breakpoint indicator on the paragraph node is removed.