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

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -