Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
DebugHook Variable
Delphi’s debugger uses
DebugHook to determine what to do with exceptions.
When an application runs normally, DebugHook is 0.
When you debug an application in Delphi’s IDE, the IDE sets
DebugHook to 1. When the IDE catches an exception
or when you are single-stepping in the debugger, the IDE sets
DebugHook to 2.