gpt4 book ai didi

visual-studio - 如何在本地打开经典 ASP 网站并在 Visual Studio 中附加到它?

转载 作者:行者123 更新时间:2023-12-04 03:43:26 24 4
gpt4 key购买 nike

也许我没有找到正确的帖子,但我一直无法为 ASP 网站设置调试。该网站正在我们的服务器上运行,但我被告知要在本地附加到它。不幸的是,我无法弄清楚如何做到这一点。

我在源代码管理中有一个网站的本地副本,我可以在 Visual Studio 中打开它,但显然 Visual Studio 不会运行经典的 ASP 站点。我不知道如何在本地附加到它。

我在 Windows 7 上运行了 Visual Studio 2008 和 2010。

最佳答案

Although the primary focus of Web debugging in Visual Studio 2010 is ASP.NET, you can also debug legacy ASP Web applications.

ASP code executes in the Internet Information Services (IIS) process (in-process execution) or in a separate Mtx.exe process (out-of-process execution). To debug ASP code, you must attach to the IIS or Mtx.exe process. To debug client-side script as well, you must also attach to the IIS process. For information on how to attach to processes, see Attaching to Running Processes.

When you attach to an ASP Web application, make sure you select the appropriate program types in the Attach To Process dialog box. When you debug script, Managed code must not be selected. You cannot debug script and managed code at the same time in Visual Studio 2005.



http://msdn.microsoft.com/en-us/library/3s68z0b3.aspx

To attach to a running process

  • On the Debug menu, select Attach to Process. If no project is open, select Attach to Process on the Tools menu.

  • In the Attach to Process dialog box, find the program that you want to attach to from the Available Processes list.

  • In the Attach to box, make sure that the type of code you will debug is listed. The default Automatic setting tries to determine what type of code you want to debug. If the automatic setting is not appropriate:

  • Click Select.

  • In the Select Code Type dialog box, click Debug these code types and select the types to debug.

  • Click OK.

  • Click Attach.

关于visual-studio - 如何在本地打开经典 ASP 网站并在 Visual Studio 中附加到它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9484235/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com