Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Zend debugger/Eclipse PDT working! almost ...
Zend debugger/Eclipse PDT working! almost ... [message #478904] Fri, 07 August 2009 12:32 Go to next message
S  is currently offline S Friend
Messages: 3
Registered: August 2009
Junior Member
Hi all, first post. I've successfully installed Eclipse PDT, and I am able to step through breakpoints in .php files "remotely" on my local Apache (easyphp) server. I can access a local mysql database, read from the database and echo to the browser just fine. I am using the Zend debugger. If after reading this you think I should give XDebug a shot, I am all ears, but it was crashing Apache so I went with Zend.

Everything is working great, I just can't get HTML forms to display and post so I can debug the interaction between the forms and the PHP. I installed the Zend Mozilla browser plugin, but it seems to want to launch Zend studio. My first instinct is to look for an older version of the plugin - maybe Zend decided to stop supporting other IDE's and set up the plugin so you have to use Zend studio?

Re: Zend debugger/Eclipse PDT working! almost ... [message #478961 is a reply to message #478904] Fri, 07 August 2009 16:47 Go to previous messageGo to next message
Miha Vrhovnik is currently offline Miha VrhovnikFriend
Messages: 9
Registered: July 2009
Junior Member
Zend studio toolbar DOESN'T work with PDT. The toolbar requires the studio
listening on TCP port and then the toolbar starts the JIT debugging via
that TCP port.
Re: Zend debugger/Eclipse PDT working! almost ... [message #478990 is a reply to message #478961] Fri, 07 August 2009 21:16 Go to previous messageGo to next message
S  is currently offline S Friend
Messages: 3
Registered: August 2009
Junior Member
Thanks Miha. Are any of the following options worth investigating?

1) Getting XDebug to work with an external browser.
2) Getting Zend debugger to work with the PDT browser.
3) Getting Xdebug to work with the PDT browser.

I am relatively indifferent between these options - I just want to be able to debug my forms.
Re: Zend debugger/Eclipse PDT working! almost ... [message #479000 is a reply to message #478990] Fri, 07 August 2009 22:10 Go to previous messageGo to next message
Dave Kelsey is currently offline Dave KelseyFriend
Messages: 15
Registered: July 2009
Junior Member
check out http://www.xdebug.org for info about issues regarding xdebug and apache. ther may be some
info about it. I had problems running xdebug 2.0.5 under apache with php 5.3 for example. The are
special builds of 2.0.6 which fix some issues there. Don't try the xdebug 2.1-dev versions though as
this has some debug code in it that causes PDT some problems.

Dave Kelsey

S wrote:
> Thanks Miha. Are any of the following options worth investigating?
>
> 1) Getting XDebug to work with an external browser.
> 2) Getting Zend debugger to work with the PDT browser.
> 3) Getting Xdebug to work with the PDT browser.
>
> I am relatively indifferent between these options - I just want to be
> able to debug my forms.
Re: Zend debugger/Eclipse PDT working! almost ... [message #479019 is a reply to message #478904] Sat, 08 August 2009 08:11 Go to previous messageGo to next message
Erik Jung is currently offline Erik JungFriend
Messages: 9
Registered: July 2009
Junior Member
S schrieb:
> Hi all, first post. I've successfully installed Eclipse PDT, and I am
> able to step through breakpoints in .php files "remotely" on my local
> Apache (easyphp) server. I can access a local mysql database, read from
> the database and echo to the browser just fine. I am using the Zend
> debugger. If after reading this you think I should give XDebug a shot,
> I am all ears, but it was crashing Apache so I went with Zend.
>
> Everything is working great, I just can't get HTML forms to display and
> post so I can debug the interaction between the forms and the PHP. I
> installed the Zend Mozilla browser plugin, but it seems to want to
> launch Zend studio. My first instinct is to look for an older version
> of the plugin - maybe Zend decided to stop supporting other IDE's and
> set up the plugin so you have to use Zend studio?
>

Hi,
the Zend Studio Toolbar is not required to debug with and an external
browser. Have you tried it without the Toolbar?
Re: Zend debugger/Eclipse PDT working! almost ... [message #479039 is a reply to message #479019] Sat, 08 August 2009 14:08 Go to previous messageGo to next message
S  is currently offline S Friend
Messages: 3
Registered: August 2009
Junior Member
Erik wrote on Sat, 08 August 2009 04:11

Hi,
the Zend Studio Toolbar is not required to debug with and an external
browser. Have you tried it without the Toolbar?


Yes, I've tried the browser without Zend studio. The browser output seems fine if I just run the code but it won't open new pages while debugging. As an example:

<?php
header("Location: http://localhost/SimpleFormCallsStart2.html"); /* Redirect browser */
$i = 10;
?>

This code runs fine in Eclipse - it opens up SimpleFormCallsStart2.html in either an internal or external browser, and I can enter data into the form, and process it using another PHP script.

However, if I use the debugger and try stepping past the "header" call, the form doesn't open up regardless of whether I use an internal or external browser.
Re: Zend debugger/Eclipse PDT working! almost ... [message #479048 is a reply to message #479039] Sat, 08 August 2009 14:57 Go to previous messageGo to next message
sNop is currently offline sNopFriend
Messages: 281
Registered: July 2009
Senior Member
S napsal(a):
> Erik wrote on Sat, 08 August 2009 04:11
>> Hi,
>> the Zend Studio Toolbar is not required to debug with and an external
>> browser. Have you tried it without the Toolbar?
>
>
> Yes, I've tried the browser without Zend studio. The browser output
> seems fine if I just run the code but it won't open new pages while
> debugging. As an example:
>
> <?php
> header("Location: http://localhost/SimpleFormCallsStart2.html"); /*
> Redirect browser */
> $i = 10;
> ?>
>
> This code runs fine in Eclipse - it opens up SimpleFormCallsStart2.html
> in either an internal or external browser, and I can enter data into the
> form, and process it using another PHP script.
> However, if I use the debugger and try stepping past the "header" call,
> the form doesn't open up regardless of whether I use an internal or
> external browser.

Hi Erik,

I recommand you XDebug 2.0.5 (I have upgraded today to 2.0.5, i used 2.0.4 lot of months (sometime 2.0.4 drop down
apache, but it's not critical)), install PHP 5.2.10 as module (not FastCGI) and use XDebug Helper for Firefox and you
will be contented. ;)

And read this:
http://devzone.zend.com/article/2930-Debugging-PHP-applicati ons-with-xdebug
http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pd f
Re: Zend debugger/Eclipse PDT working! almost ... [message #479084 is a reply to message #479039] Sat, 08 August 2009 22:56 Go to previous messageGo to next message
Erik Jung is currently offline Erik JungFriend
Messages: 9
Registered: July 2009
Junior Member
I've tried your example without any problems with Zend debugger and Firefox.
Re: Zend debugger/Eclipse PDT working! almost ... [message #486267 is a reply to message #479039] Thu, 17 September 2009 02:56 Go to previous message
Eclipse UserFriend
Originally posted by: someone.somewhere.com

On Sat, 08 Aug 2009 10:08:11 -0400, S wrote:

> Erik wrote on Sat, 08 August 2009 04:11
>> Hi,
>> the Zend Studio Toolbar is not required to debug with and an external
>> browser. Have you tried it without the Toolbar?
>
>
> Yes, I've tried the browser without Zend studio. The browser output
> seems fine if I just run the code but it won't open new pages while
> debugging. As an example:
>
> <?php
> header("Location: http://localhost/SimpleFormCallsStart2.html"); /*
> Redirect browser */ $i = 10;
> ?>
>
> This code runs fine in Eclipse - it opens up SimpleFormCallsStart2.html
> in either an internal or external browser, and I can enter data into the
> form, and process it using another PHP script.
>
> However, if I use the debugger and try stepping past the "header" call,
> the form doesn't open up regardless of whether I use an internal or
> external browser.

Yes...I see what you mean.
I've got the same problem. See my post "Debugging Webpages
Sequentially" (to which no one has responded).

I'm just in the mood to rant and I've got to say that Eclipse has, for
me, the most nearly vertical learning curve of any software of *any kind*
I've ever used.
I installed Ganymede PDT on Hardy and then installed Galileo PDT on
Jaunty and every step is a struggle. :( (boo hoo)
I've used Zend IDE on Windows for years: It's easy! and works great. I'm
starting to consider $400 for the app cheap if my time is figured at $.05/
hour.
Thanks...I feel better now.
Previous Topic:PHP Editor: The editor class could not be instantiated.
Next Topic:PDT-Error on Debugging of a PHP script
Goto Forum:
  


Current Time: Thu Apr 25 09:40:23 GMT 2024

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

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

Back to the top