• Answers
  • Web
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).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

debugging my computer

how do i debug my computer
Submitted by bmoba   1 year ago.
  • viewed 125 times


Q:

Debug

When I surf to the this site(yedda) i am getting an error:debug. I try to do debug and I can't do it. Do u have any idea what to ...
Submitted by Guyop   3 years ago.
  • viewed 980 times
Last answer posted 3 years ago by Yaniv


Q:

Debug

What is debugging on a computer? My computer keeps getting this error message. It is annoying. I just had it in a shop and they ...
Submitted by Pat Potts   1 year ago.
  • viewed 510 times
Last answer posted 1 year ago by B.o.B.



» More...

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