Previous Topic Next topic Print topic


To debug the demonstration preprocessor

  1. Create the following programs using the code in the examples listed in Related Information:

    preproc.cbl, working.cbl and asmcobol.cbl

  2. Edit preproc.cbl to specify the following as the first statement in the START-PARA section:
    call "CBL_DEBUGBREAK" end-call

    This a call to the COBOL run-time system to invoke the COBOL debugger.

  3. Perform the relevant steps from the topic To build the demonstration preprocessor. If you have already created the projects, you will just need to rebuild the project containing preproc.cbl.

    When you debug the second project, the call to CBL_DEBUGBREAK that you inserted at step 2 invokes the debugger, enabling you to debug the preprocessor code.

Previous Topic Next topic Print topic