【问题标题】:Problem with Classic ASP Breakpoints in Visual Studio 2005Visual Studio 2005 中的经典 ASP 断点问题
【发布时间】:2009-07-16 17:57:43
【问题描述】:

我正在尝试在无法正常工作的 ASP 页面中设置断点。

我在 Windows Server 2008 上的 Visual Studio 2005 中执行此操作。

每当我尝试使用鼠标设置断点时,IDE 都会打开一个不同的页面并在该页面的某处设置断点。我不知道为什么会这样。

我使用 F9 设置断点的运气更好,但无论如何,这些断点不会被命中。在 Visual Studio 自动打开的页面中设置的断点被命中,但这对我没有帮助,因为我不需要调试该页面!

这是我第一次调试经典的 ASP,所以我需要一些帮助。

谢谢

【问题讨论】:

  • 我真的很期待这个问题的答案:我不久前放弃了经典的 asp 断点,设置起来很麻烦,而且无论如何都无法正常工作.. . 但也许有办法让它工作......

标签: debugging iis visual-studio-2005 iis-7 asp-classic


【解决方案1】:

我刚刚在服务器 2008 上测试了 VS 2008 中经典 ASP 的调试,它工作正常。我还没有 VS2005 来测试它。

但是,如果没有记错的话,当网站项目的根文件夹(并且您使用的是网站而不是 Web 应用程序项目)和 IIS 配置中的主目录路径时,我已经看到了这个问题。例如,VS 解决方案指向 UNC 路径,而 IIS 指向物理驱动器。在这种情况下VS无法将ASP进程中脚本的文件路径与解决方案中源代码的文件路径结合起来。

【讨论】:

  • 这是一个网站,而不是一个应用程序。当我在 VS 中加载站点时,我在该服务器上的 IIS 中选择了一个站点,所以我认为不是这样。
【解决方案2】:
In VS.NET: 
project - properties
  configuration properties
     debugging
        - enable ASP debugging
        - enable ASP.NET debugging

In the IIS snap-in: 
  default Website - properties
      home directory tab
         configuration
            app debugging
               - enable ASP server-side script debugging
   Website (the project you want to debug) - properties
      directory tab
         application name: add

Add IIS process account to Debugger Users group: 
   In Computer Management snap-in:
      System Tools
         Local Users and Groups
            Groups
               Debugger Users - properties
                  Add user IWAM_machine-name (the "Launch IIS process account")

Now, to debug in VS.NET: 
   right-click the .asp page that the application should start from
      select "Set as Start Page" 

【讨论】:

  • 这看起来像是 IIS6 的说明。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-28
  • 1970-01-01
  • 1970-01-01
  • 2011-01-28
相关资源
最近更新 更多