Previous Topic: Test in Production and Testing Environments

Next Topic: Invoke and Cancel NCL Procedures


Debug an NCL Procedure

The NCL Debug facility is a powerful tool to assist in the debugging of NCL procedures.

NCL Debug provides the ability to observe the execution of an NCL procedure from an external source, that is, another environment, another user region, window, or NCL environment. It eliminates the need for code changes to debug a procedure. It also provides comprehensive control over the NCL procedure as it is being executed, supporting statement stepping, alteration of variable contents and attributes, and so on. It lets you specify criteria for debugging NCL before it begins execution.

The NCL Debug facility is made up of a set of commands that lets you start and stop an NCL debug session, control the execution of NCL processes, and display and modify the contents of NCL variables. Procedure and subroutine nesting levels can be listed and the source code that is being executed can be displayed. NCL trace output can be received at another region, thus allowing you to view the trace output concurrently as the debugged process executes.