1. A method implemented at least in part by a computer, the method comprising: during execution of code in a runtime environment, executing a statement of the code, the statement providing information regarding a notification, if any, to send to a debugger if exceptions occur while the code is executing; encountering an exception while executing the code; evaluating program state that existed in the runtime environment when the exception was encountered, the evaluating program state comprising searching for an exception handler that will handle the exception; and based on the program state and the information, determining the notification, if any, to send to the debugger in response to the exception.