Главная страница | назад





Article #26659: How to detect if your application is running under the IDE

Question

How do I detect if my application is running in the IDE?

Answer

Use the IsDebuggerPresent() WinAPI call.
Example:


if (IsDebuggerPresent()) Label1->Caption = "debug"; else Label1->Caption = "no debug";

Last Modified: 22-JAN-01