Author: Tomas Rutkauskas Detect whether your program runs in the IDE Answer: Below is another way to detect whether your program runs in the Delphi IDE 1 program p; 2 begin 3 if DebugHook <> 0 then 4 ShowMessage('Running in Delphi IDE'); 5 end.