Search code examples
delphidelphi-2007delphi.net

Detect if my application is running under the IDE "Delphi 2007 .Net"


How can I detect if my application is running under the IDE "Delphi 2007 .Net", there is something like DebugHook?

Bye.


Solution

  • Answer my own question.

    uses System.Diagnostics; 
    
    function IDEDelphiNetRunning:Boolean; 
    Begin 
    Result:=Debugger.IsAttached; 
    End; 
    

    works fine for me.

    Bye.