Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT debugging - MVC issues
PDT debugging - MVC issues [message #57165] Fri, 05 October 2007 18:35
Eclipse UserFriend
Originally posted by: miller.kurt.e.gmail.com

I thought I had debugging working with the Zend debugger but it is only
working for code that gets hit from index.php without any intervening user
interaction. Once you try to debug any page that is dependent on user
interaction i.e. form submission - forget it. I switched over to Xdebug
to experiment with that and the problem persists. The fundamental problem
seems to be the MVC structure where all traffic is directed through the
framework (Zend in this case) via index.php and Apache rewrite in
htaccess.

In contrast, Zend Studio has linkage between the Firefox or IE plugin that
allows for debugging to proceed from any point in the application.
Therefore, if I have code that processes the results from a POST or GET, I
can simply navigate to that form in the browser, populate the form, right
click on the page, select 'Debug next page', click submit, and I'm
immediately back in Zend Studio at the breakpoint. That's debugging
properly done!

Although, the install instructions:
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_ Installation_:_Installing_the_Zend_Debugger

and the debugging howto:
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_ User_Guide_:_PHP_Source_Level_Debugging

talk about installing the server debugger and the Firefox extension, I've
yet to see these work in a similar fashion under Eclipse. While debugging
from Eclipse, if I right click in the browser to initiate a 'Debug next
page' for instance, the pluggin complains that Zend Studio is not running.
Duh! So, I'm not sure how the author of those instructions had things
configured but all the tips provided in those pages have failed to
function as advertised as of yet.

He says about POST and GET debugging:

------------------------------------------------------------ -----------
Debugging Forms (POST and GET) and Multipages Trick

This trick has been test on linux with PDT 1.0 and mozilla firefox 2.0.x

* First download and install the Zend's extension module into your
browser (initially made for Zend Studio) :

http://www.zend.com/en/products/zend_studio/plug_ins#mozilla _firefox

* Configure to Debug with an external browser
o In the Window menu select "Web Browser" > "Mozilla"
o You can change or add an external browser via the Window menu
"Preference..." > "General" > "Web Browser" to match the browser you have
installed Zend's extension.
o In the Run menu select "Open Debug Dialog..." > "PHP Web Page"
> "Your configuration" > "Advanced tab" and choose "Open in Browser" and
"Debug All Pages"

* Debug your site
o In the Debug menu of the toolbar choose your Web Page
configuration and click it
o Your external brower should open the page you want to debug
and stop on the first breakpoint (if any).
o From the Zend toolbar go in the Debug menu and choose "All
pages of this site"
o Go on debugging your site's pages, Eclipse PDT will handle the
stuff.
------------------------------------------------------------ -----------

Well, it didn't seem to "handle the stuff" to me.

I would really like to know what I don't understand about setting this up
because if I want to get any real work done, I'll have to abandon a career
of screwing around with Eclipse and PDT configurations, and fire up Zend
Studio and start coding again. That's disappointing because I like much
about Eclipse and I don't like having to use two IDE's for development but
without decent browser/server integration there is little choice.

Any help getting this configuration to work under the circumstances I've
described would be greatly appreciated!

-km
Previous Topic:Problem getting rid of PHP warning messages
Next Topic:Debugging stops with "Error"
Goto Forum:
  


Current Time: Thu Dec 26 20:03:20 GMT 2024

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

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

Back to the top