I know I can start a process in code with Process.Start().
Is it also possible to attach the debugger to that process?
Not from code per se , but just a way to do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can attach to a running process using
Tools | Attach to Process. If it’s a Web Application, you can attach to it by attaching toaspnet_wp.exeorw3wp.exe.To answer your question on how to attach to a process programmatically:
Here are other Stack Overflow questions that deal with that: