Is there a Delphi equivalent of the C# #if(DEBUG) compiler directive?
DebugHook is set if an application is running under the IDE debugger. Not the same as a compiler directive but still pretty useful. For example:
ReportMemoryLeaksOnShutdown := DebugHook <> 0; // show memory leaks when debugging