Next: , Previous: Using the Next Command in a Function, Up: Running and Debugging Ada Programs


28.7 Breaking on Ada Exceptions

You can set breakpoints that trip when your program raises selected exceptions.

break exception
Set a breakpoint that trips whenever (any task in the) program raises any exception.
break exception name
Set a breakpoint that trips whenever (any task in the) program raises the exception name.
break exception unhandled
Set a breakpoint that trips whenever (any task in the) program raises an exception for which there is no handler.
info exceptions
info exceptions regexp
The info exceptions command permits the user to examine all defined exceptions within Ada programs. With a regular expression, regexp, as argument, prints out only those exceptions whose name matches regexp.