Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT/Zend Framework/Debugging
PDT/Zend Framework/Debugging [message #56109] Mon, 01 October 2007 00:26 Go to next message
Eclipse UserFriend
Originally posted by:


Till now I have been debugging with Zend Studio. No problems; works

I have tried for a couple of days now to configure Eclipse and the Zend
PDT to debug (Zend Debugger) beyond index.php in an .htaccess rewrite
driven MVC environment (Zend Framework). I have read everything I could
find (including posts in this newsgroup) to gain some insights into how
debugging is intended to be setup and invoked but no luck. This all seems
ridiculously complicated.

Under PHP Servers I have two defined. One for Production that points to
the doc root: http://project_production.local (set as default) and one for
Development that points to the doc root: http://project_development.local
depending on which project within the workspace I'm working on. Neither
publish to the server. Break on first line is disabled. Debug all pages
is checked. The Zend toolbar in Firefox has debug all pages set as well.

From what I can gather, I set a breakpoint in the file, right click on the
file in the PHP Explorer, choose Debug as PHP Web Page and so on. That
works fine if I want to debug index.php, nothing else. If, for instance,
I set a breakpoint in /app/controllers/IndexController.php and debug
index.php to get the ball rolling, it just cruises right past the
breakpoint set in the controller. If I try to debug
/app/controllers/IndexContoller.php directly, it sends the url:

http://cpg_production.local/app/controllers/IndexController. php?original_url=http://cpg_production.local/app/controllers /IndexController.php&debug_port=10000&start_debug=1& amp;debug_start_session=1&debug_no_cache=1191197379179&a mp;debug_host= &send_sess_end=1

which is never going to work because the framework is supposed to call
this from the dispatcher.

And then I can select Debug as Open Debug Dialog and go that route but
that seems to want to setup a profile for each page I debug which doesn't
make sense . Nonetheless, I played with all those options to see if I
could get it to work but I couldn't so I'm just confused and exhausted.

I ready to start from scratch if someone can please just tell me how this
is supposed to go...

My sources are organized as:
same as above....

Virtual host settings
<VirtualHost *:80>
ServerName project_production.local
DocumentRoot "D:/Workspaces/project/project_production"
<Directory "D:/Workspaces/project/project_production">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all

--------------------- localhost project_production.local project_development.local

Thanks for any help,
Re: PDT/Zend Framework/Debugging [message #56479 is a reply to message #56109] Tue, 02 October 2007 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

Got it working...jeez what a pain.

1) Downloaded the most current Zend Debugger.

2) Setup the server under PHP Servers to match the virtual host settings
for the current project

3) In the the Run Debug dialog, set the File/Project to

4) In the Run Debug Advanced tab, set Debug All Pages
Re: PDT/Zend Framework/Debugging [message #637015 is a reply to message #56479] Wed, 03 November 2010 18:38 Go to previous messageGo to next message
Alex Angelico is currently offline Alex AngelicoFriend
Messages: 9
Registered: November 2010
Junior Member
Great man! I had this problem for a long time... now its working!!

I dont use a framework, but use a lot htaccess rewrite rule, and the debugger gets lost. This solves this problem.

Very Happy
Re: PDT/Zend Framework/Debugging [message #637609 is a reply to message #56109] Sun, 07 November 2010 19:35 Go to previous message
Jeff Lynn is currently offline Jeff LynnFriend
Messages: 2
Registered: November 2010
Junior Member
Please help. I had installed the latest Eclipse for PHP all in one, with Zend Server CE as well. However, I cannot run/debug the web pages created until I copy these pages (includeing folder) to my linux /var/www. For example, if my project is PhpProject1 and the file is PhpTest1.php, I will have to copy to /var/www/PhpProject1/PhpTest1.php for it to run.

Just wonder how do I configure the PDT/Zend Debugger to run the file instead of having me to copy them over, beside, I am not sure I can even debug it.

I had followed all the setup instructions repeatedly the whole day yesterday without any success.

Any help is greatly appreciated!

Previous Topic:v2.2.1: PHP Executable SAPI Type cannot be saved
Next Topic:New Install "Not a valid win32 application"
Goto Forum:

Current Time: Tue Jan 17 00:55:55 GMT 2017

Powered by FUDForum. Page generated in 0.09327 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software