• Answers
  • Web
Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:
Originated from
Advanced .NET Debugging

How can I terminate attached debugger?

How can I find the process associated with an attached debugger and can I terminate it?


Share Send to a friend Watch Report
 
 

2 Posted Answers
Order by

 
207 helpful answers

They're coming to take me away, Ha-haaa!

Advanced .NET Debugging Blog

My personal blog

As far as I know you cannot know if a process has a debugger attached to it outside of the process itself. In .NET you can, however, check on your current process if it is attached to a debugger or not using the "Debugger.IsAttached" property located in System.Diagnostics. 

You can then use the the following code to kill your process:

Process.GetCurrentProcess().Kill();

To kill the current process. 

 

Posted 2007-09-09T09:39:04Z
Eran was invited by Yedda to answer this question.

Helpful?(1)
Rated as Best Answer

Sign in to participate

Got an answer for ivden? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License