Skip to main content


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: 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 Go to previous messageGo to next message
Eclipse UserFriend
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
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.

thanks
Very Happy
Re: PDT/Zend Framework/Debugging [message #637609 is a reply to message #56109] Sun, 07 November 2010 19:35 Go to previous messageGo to next 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!

Jeff
Re: PDT/Zend Framework/Debugging [message #1752655 is a reply to message #637609] Wed, 25 January 2017 19:53 Go to previous message
sehen gratis is currently offline sehen gratisFriend
Messages: 2
Registered: January 2017
Junior Member
Great man! I had this problem for a long time... now its working!!


thanks
Previous Topic:How to prevent auto-closing recent files
Next Topic:Debugging Server Side Linux but using Windows machine
Goto Forum:
  


Current Time: Thu Apr 25 23:36:27 GMT 2024

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

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

Back to the top