2008-12-15 154 views
0

我想在Eclipse中的Zend Framework中调试我的项目。 Zend Debugger已经在运行了,现在我在Eclipse中遇到了调试工具的问题。它给了额外的GET参数,而Zend中的项目并不喜欢它。。用于Zend Debugger,Eclipse和Zend Framework的.htaccess

我想谷歌一下,发现this

我体改的的.htaccess文件但不能使它工作。

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^(.*)?(start_debug=1.*)$ index.php?$2 [L] 
RewriteRule ^.*$ - [NC,L] 
RewriteRule ^.*$ index.php [NC,L] 

不知道它的完全正确的,因为在page重写规则有一些对我来说UKNOWN标志这我的Apache不工作。

这是Eclipse的制作链接是

http://localhost/?debug_start_url=http://localhost/&debug_session_id=1007&start_debug=1&debug_host=127.0.0.1&debug_no_cache=1229359621130&debug_port=10000&send_sess_end=1&original_url=http://localhost/&debug_stop=1

回答

0

与实际的Zend Framework 1.9.6和Zend Debugger一起工作没有任何特别的变化

1

我成功地使用调试器和我的htaccess看起来像这样

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*)$ index.php [QSA,L] 
    RewriteCond %{REQUEST_FILENAME} (logs|library|application|config) 
    RewriteRule ^(.*)$ index.php 
</IfModule> 

这基本上说,如果该URL不会导致存在或然后通过文件的index.php我去(也阻止了日志,库,应用程序的目录和配置文件夹,因为有时它们因为服务器限制而位于我的一些项目的文档根目录中)。到目前为止,没有任何项目让我失望。