2011-02-07 23 views
0

加載Xdebug的配置文件我曾嘗試使用Webgrind用於剖析我的應用程序,但是當我點擊更新按鈕,它顯示一個錯誤:不能由webgrind

Could not open D:\Program Files\xampp\tmp/ for reading. 
D:\Program Files\xampp\htdocs\webgrind\library\Preprocessor.php, line 49 

我檢查的文件夾tmp目錄的權限,並確保它允許對每個人完全控制。 文件夾D:\ Program Files \ xampp \ tmp有文件xdebug_profile.6096,意思是xdebug工作正常(我也用xdebug使用Netbeans測試了xdebug,它工作正常)。

我的系統:

的Windows Vista

XAMPP 1.7.3

Webgrind 1.02

任何人有這方面的經驗?請幫幫我!

+0

你試過[隨機暫停(http://stackoverflow.com/questions/375913/what-c​​an-i-use-to-profile-c-code-in-linux/378024#378024 )? – 2011-02-09 03:15:57

回答

0

認爲我有Thang。

嘗試向您的虛擬主機添加額外的目錄指令。 這應該允許服務器訪問目錄之外的文件夾。

我添加了我的虛擬主機,我用我的本地主機在我的Windows機器上。

#template vhost container 

NameVirtualHost *:80 

<VirtualHost *:80> 

    DocumentRoot C:\www 
    ServerName localhost 
    CustomLog logs/localhost-transfer.log combined 
    ErrorLog logs/localhost-error.log 

    # Non configurable settings 

    DirectoryIndex index.html index.php 

    <Directory C:\www> 
     Options Indexes 
     AllowOverride None 
     Order allow,deny 
     Allow from all 
    </Directory> 

    <Directory "C:/xampp/tmp"> 
     Options Indexes FollowSymLinks Includes ExecCGI 
     AllowOverride All 
     Order allow,deny 
     Allow from all 
    </Directory> 

</VirtualHost>