PDT/Zend Framework/Debugging [message #56109] |
Mon, 01 October 2007 00:26 |
Eclipse User |
|
|
|
Originally posted by: miller_kurt_e.yahoo.com
Greetings,
Till now I have been debugging with Zend Studio. No problems; works
perfectly.
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=10.0.0.2%2C127.0.0.1&debug_session_id=1009 &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:
----------------------------
d:/workspaces/project/project_production
/app
+/controllers
+/models
+/views
/lib
/styles
/images
index.php
.htaccess
d:/workspaces/project/project_development
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
</Directory>
</VirtualHost>
/etc/hosts
---------------------
127.0.0.1 localhost
127.0.0.1 project_production.local
127.0.0.1 project_development.local
Thanks for any help,
-km
|
|
|
Re: PDT/Zend Framework/Debugging [message #56479 is a reply to message #56109] |
Tue, 02 October 2007 16:49 |
Eclipse User |
|
|
|
Originally posted by: miller_kurt_e.yahoo.com
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
/project_dir/index.php
4) In the Run Debug Advanced tab, set Debug All Pages
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.18104 seconds