I have a program that Process.Start() another program, and it shuts it down after N seconds.
Process.Start()
Sometimes I choose to attach a debugger to the started pro
The solution for me is Debugger.IsAttached as described here: http://www.fmsinc.com/free/NewTips/NET/NETtip32.asp