HP 3000 Manuals

Ch 11. Error Recovery and Debugging [ HP Pascal/iX Programmer's Guide ] MPE/iX 5.0 Documentation


HP Pascal/iX Programmer's Guide

Chapter 11  Error Recovery and Debugging 

There are three types of Pascal errors.  They are:

   *   An error, which violates the definition of the HP Pascal language.

   *   A compile-time error, which occurs when you compile your program
       (as in the case of a syntax error).

   *   A run-time error, which occurs when you run your program (as in
       the case of a value out of range).

Errors are not to be confused with notes and warnings, both of which
occur at compile time.  A note gives you information that may help you
make your program more efficient.  A warning alerts you to a situation
that could cause a run-time error (the compiler cannot tell if it will).

This chapter explains:

   *   How to write error recovery code for your program, so that it can
       handle run-time errors that would otherwise cause it to abort
       (error recovery code does not catch compile-time errors, warnings,
       or notes).

   *   How to use the MPE/iX traps that you can use with HP Pascal.

   *   How to compile your program for use with the HP TOOLSET/XL
       debugger, the HP Symbolic Debugger, or the system debuggers.



MPE/iX 5.0 Documentation