.htaccess for Zend Debugger, Eclipse and Zend Framework
-
21-08-2019 - |
Question
I want to debug my project in Zend Framework in Eclipse. Zend Debugger is already running bud now I have problem with Debug tool in Eclipse. It give an extra GET parametrs and the project in Zend don't like it.
I tried to google it and found this
I modifed the .htaccess file but not make it working.
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]
Don't know if its completely right because the Rewrite rules on the page has some for me uknown flags which my Apache do not work with.
the link which is Eclipse making is
Solution 3
with actual Zend Framework 1.9.6 and Zend Debugger it works without any special changes
OTHER TIPS
I successfully use the debugger and my htaccess looks like this
<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>
This basically says if the url doesn't lead to a directory that exists or a file then go through my index.php (also block out the logs, library, application and config folders because sometimes they are in the document root on some of my projects because of server limitations). Hasn't failed me on any project so far.
try to check this article
http://easy-tutorials-php.blogspot.com/2008/10/debuging-php-using-vertrigo-server-and.html
maybe it will help you