Search code examples
eclipsedebuggingzend-frameworkmod-rewritezend-debugger

.htaccess for Zend Debugger, Eclipse and Zend Framework


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

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


Solution

  • with actual Zend Framework 1.9.6 and Zend Debugger it works without any special changes