You can set catchpoints that stop the program execution when your program raises selected exceptions.
catch exceptionSet a catchpoint that stops execution whenever (any task in the) program raises any exception.
catch exception nameSet a catchpoint that stops execution whenever (any task in the) program raises the exception ‘name’.
catch exception unhandledSet a catchpoint that stops executing whenever (any task in the) program raises an exception for which there is no handler.
info exceptions, info exceptions regexpThe 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’.