debugging - Is there a way to detect if a debugger is attached to a process from C#? -


I have a program that is the second program in Process.Start (), and it closes it after N seconds I

Sometimes I choose to attach debugger to the launch program. In those cases, I do not want to stop this process after N seconds.

I want to know if the host program is attached or not, it can not choose to turn it off: I do not want to know that a debugger my process I want to know that a debugger is connected to this process which I am creating.

You will need the following to handle the target process, which you can process Can get from the hoodle.


Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -