我如何附上一个过程,在Visual Studio中的调试器? [英] How do I attach a process to the debugger in Visual Studio?

查看:158
本文介绍了我如何附上一个过程,在Visual Studio中的调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以开始在code进程与的Process.Start()。 是否也可以将调试器附加到该进程?

I know I can start a process in code with Process.Start(). Is it also possible to attach the debugger to that process?

不从code的本身的,而只是一个办法做到这一点?

Not from code per se , but just a way to do it?

推荐答案

您可以连接到正在运行的进程使用工具|附加到进程。如果它是一个Web应用程序,你可以将它通过连接到 ASPNET_WP.EXE 的w3wp.exe

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 to aspnet_wp.exe or w3wp.exe.

要回答你如何连接到编程过程的问题​​:

To answer your question on how to attach to a process programmatically:

下面是处理与其他堆栈溢出问题:

Here are other Stack Overflow questions that deal with that:

  • <一个href="http://stackoverflow.com/questions/201504/is-it-possible-to-communicate-with-the-visual-studio-debugger-programmatically-wh">Communicating与编程的Visual Studio调试?
  • <一个href="http://stackoverflow.com/questions/841782/programmatically-apply-deactivate-breakpoints-in-visual-studio">Programmatically在Visual Studio应用断点
  • Communicating with the Visual Studio Debugger Programmatically?
  • Programmatically apply breakpoints in Visual Studio

这篇关于我如何附上一个过程,在Visual Studio中的调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆