Error-checking and debugging options
You can use the options in Table 1 to detect and correct problems in your source code. In some cases, these options can alter your object code, increase your compile time, or introduce runtime checking that can slow down the execution of your application. The option descriptions indicate how extra checking can impact performance.
To control the amount and type of information you receive regarding the behavior and performance of your application, consult the Listings, messages, and compiler information options section.
| Option | Description | Compile | IPA Link | More Information |
|---|---|---|---|---|
| DEBUG | Instructs the compiler to generate debug information. | ✓ | See detail | |
| EVENTS | Produces an event file that contains error information and source file statistics. | ✓ | ✓ | See detail |
| HALT | Stops compilation before producing any object, executable, or assembler source files if the maximum severity of compile-time messages equals or exceeds the severity specified for this option. | ✓ | ✓ | See detail |
| HALTONMSG | Stops compilation before producing any object, executable, or assembler source files if a specified error message is generated. | ✓ | ✓ | See detail |
| INFO | Produces groups of informational messages. | ✓ | ✓ | See detail |
| INITAUTO | Initializes automatic variables to a specific value for debugging purposes. | ✓ | ✓ | See detail |
| SERVICE | Places a string in the object module, which is displayed in the traceback if the application fails abnormally. | ✓ | ✓ | See detail |
| WARN64 | Generates diagnostic messages, which enable checking for possible data conversion problems between 32-bit and 64-bit compiler modes. | ✓ | ✓ | See detail |