Handling exceptions within expressions (C and C++ and PL/I only)

When an exception such as division by zero is detected in a z/OS® Debugger expression, you can use the z/OS Debugger command SET WARNING to control z/OS Debugger and program response. During an interactive z/OS Debugger session, such exceptions are sometimes due to typing errors and so are probably not intended to be passed to the program. If you do not want errors in z/OS Debugger expressions to be passed to your program, use SET WARNING ON. Expressions containing such errors are terminated, and a warning message is displayed.

However, you might want to pass an exception to your program, perhaps to test an error recovery procedure. In this case, use SET WARNING OFF.

Refer to the following topics for more information related to the material discussed in this topic.