views:

20

answers:

1

Hi all,

In my c# code I'd like to know whether the app has been launched by the debugger (in my case VisualStudio). Does anyone know how to get this information?

TIA

+3  A: 

System.Diagnostics.Debugger.IsAttached

leppie
thanks a lot...
olich