2009-07-16 44 views
2

我試圖在ASP頁面中設置一個斷點,導致無法正常工作。Visual Studio 2005中的經典ASP斷點問題

我在Visual Studio 2005在Windows Server 2008

做這個每當我試着設置斷點用鼠標,IDE會打開一個不同的頁面,在該頁面設置一個斷點的地方。我不知道它爲什麼這樣做。

我有更好的運氣使用F9設置斷點,但這些斷點不會被打到,無論如何。在Visual Studio自動打開的頁面中設置的斷點越來越受歡迎,但這並不能幫助我,因爲我不需要調試該頁面!

這是我第一次調試經典的ASP,所以我可以使用一些幫助。

感謝

+0

我真的很期待這個問題的答案:我放棄了前一段時間的經典asp斷點,設置起來很麻煩,反正無法正常工作......但也許有一種讓它工作的方法... – 2009-07-16 18:07:22

回答

0

我只是考驗的經典ASP的調試在VS 2008中對2008年服務器,它工作正常。我沒有VS2005來測試它。

但是,如果內存服務,我已經看到了這個問題,當網站項目的根文件夾(你使用的網站不是一個Web應用程序項目的權利?)和IIS配置中的主目錄路徑。例如,VS解決方案指向UNC路徑,而IIS指向物理驅動器。在這種情況下,VS不能在解決方案中使用源代碼的文件路徑在ASP進程中結尾腳本的文件路徑。

+0

這是一個網站,而不是一個應用程序。當我在VS中加載站點時,我正在該服務器的IIS中選擇一個站點,所以我不認爲就是這樣。 – 2009-07-17 12:12:13

0
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" 
+0

這看起來像IIS6的說明。 – 2009-07-16 18:31:08