To debug the demonstration preprocessor

  1. From the Example Integrated Preprocessor topic, create the files 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.