I have a program that Process.Start () is another program, and it disables it after N seconds.
Sometimes I choose to attach a debugger to a running program. In these cases, I do not want the process to shut down after N seconds.
I want the host program to detect that the debugger is connected or not, so it may not close it.
Clarification: I am not looking to determine if the debugger is attached to my process, I am looking to determine if the debugger is attached to the process that I spawned.
debugging c #
Lucas Meijer Feb 02 2018-10-02T00 : 00
source share