Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug problems on OS X, had this working in earlier RC
XDebug problems on OS X, had this working in earlier RC [message #54487] Mon, 24 September 2007 18:27 Go to next message
Eclipse UserFriend
Originally posted by: mseritan.de-dash-co-de.com

I had XDebug run previously in one of the July/August PDT release
candidates. I've been trying for 3 days to get it running in the
pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
going a PHP Script Debugging configuration.

1. I downloaded the complete archive above and configured XDebug as per
the instructions
2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported in
php -i
3. The command line client provided with XDebug properly stops the
execution of the script.
4. I check that port 9000 is not opened before Eclipse starts and it is
opened after Eclipse is up
5. Debugging does not stop at the breakpoints.
6. When I am debugging from the XDebug client I get output in
/tmp/xdebug.log (see below for my php.ini) but there is no output at all
when debugging in Eclipse.


--- php.ini ---
[xdebug]
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_port=9000
xdebug.remote_host=127.0.0.1
xdebug.remote_log=/tmp/xdebug.log
zend_extension=/usr/local/php5/lib/xdebug.so



What can I try next?

Thanks,

Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54515 is a reply to message #54487] Mon, 24 September 2007 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Did you start with a new workspace. Workspaces from previous PDT
versions are not compatible with PDT 1.0 official release.

Also just need to check you didn't try to install the xdebug plugins as
xdebug is now part of PDT 1.0

Cheers
Dave Kelsey

Marius Seritan wrote:
> I had XDebug run previously in one of the July/August PDT release
> candidates. I've been trying for 3 days to get it running in the
> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
> going a PHP Script Debugging configuration.
>
> 1. I downloaded the complete archive above and configured XDebug as per
> the instructions
> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported in
> php -i
> 3. The command line client provided with XDebug properly stops the
> execution of the script.
> 4. I check that port 9000 is not opened before Eclipse starts and it is
> opened after Eclipse is up
> 5. Debugging does not stop at the breakpoints.
> 6. When I am debugging from the XDebug client I get output in
> /tmp/xdebug.log (see below for my php.ini) but there is no output at all
> when debugging in Eclipse.
>
>
> --- php.ini ---
> [xdebug]
> xdebug.remote_enable=1
> xdebug.remote_handler="dbgp"
> xdebug.remote_port=9000
> xdebug.remote_host=127.0.0.1
> xdebug.remote_log=/tmp/xdebug.log
> zend_extension=/usr/local/php5/lib/xdebug.so
>
>
>
> What can I try next?
>
> Thanks,
>
> Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54541 is a reply to message #54487] Mon, 24 September 2007 19:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Might also be worth executing a simple script of phpinfo through debug
to show that xdebug is loaded as the launcher creates a copy of the ini
file from the one with your php executable.

Dave Kelsey


Marius Seritan wrote:
> I had XDebug run previously in one of the July/August PDT release
> candidates. I've been trying for 3 days to get it running in the
> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
> going a PHP Script Debugging configuration.
>
> 1. I downloaded the complete archive above and configured XDebug as per
> the instructions
> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported in
> php -i
> 3. The command line client provided with XDebug properly stops the
> execution of the script.
> 4. I check that port 9000 is not opened before Eclipse starts and it is
> opened after Eclipse is up
> 5. Debugging does not stop at the breakpoints.
> 6. When I am debugging from the XDebug client I get output in
> /tmp/xdebug.log (see below for my php.ini) but there is no output at all
> when debugging in Eclipse.
>
>
> --- php.ini ---
> [xdebug]
> xdebug.remote_enable=1
> xdebug.remote_handler="dbgp"
> xdebug.remote_port=9000
> xdebug.remote_host=127.0.0.1
> xdebug.remote_log=/tmp/xdebug.log
> zend_extension=/usr/local/php5/lib/xdebug.so
>
>
>
> What can I try next?
>
> Thanks,
>
> Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54565 is a reply to message #54515] Mon, 24 September 2007 21:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mseritan.de-dash-co-de.com

Dave,

Thanks for the pointer.

I have a totally new workspace too.

I did not install anything besides the PDT All tgz.


I am not running another Eclipse installation at the same time.

I looked in the .project file (I have the old ones) and there doesn't
seem to be anything there. I am reusing that old .project.

Marius

Dave wrote:
> Did you start with a new workspace. Workspaces from previous PDT
> versions are not compatible with PDT 1.0 official release.
>
> Also just need to check you didn't try to install the xdebug plugins as
> xdebug is now part of PDT 1.0
>
> Cheers
> Dave Kelsey
>
> Marius Seritan wrote:
>> I had XDebug run previously in one of the July/August PDT release
>> candidates. I've been trying for 3 days to get it running in the
>> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
>> going a PHP Script Debugging configuration.
>>
>> 1. I downloaded the complete archive above and configured XDebug as
>> per the instructions
>> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported in
>> php -i
>> 3. The command line client provided with XDebug properly stops the
>> execution of the script.
>> 4. I check that port 9000 is not opened before Eclipse starts and it
>> is opened after Eclipse is up
>> 5. Debugging does not stop at the breakpoints.
>> 6. When I am debugging from the XDebug client I get output in
>> /tmp/xdebug.log (see below for my php.ini) but there is no output at
>> all when debugging in Eclipse.
>>
>>
>> --- php.ini ---
>> [xdebug]
>> xdebug.remote_enable=1
>> xdebug.remote_handler="dbgp"
>> xdebug.remote_port=9000
>> xdebug.remote_host=127.0.0.1
>> xdebug.remote_log=/tmp/xdebug.log
>> zend_extension=/usr/local/php5/lib/xdebug.so
>>
>>
>>
>> What can I try next?
>>
>> Thanks,
>>
>> Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54627 is a reply to message #54541] Tue, 25 September 2007 00:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mseritan.de-dash-co-de.com

Dave,

This was a very good tip!

I added a phpinfo() to the debugged php code. When running the php file
directly from the command line I do see xdebug configs. The same thing
for php -i. However when running from Eclipse I don't see the same
xdebug entries even though the php.ini file is the right one

Configuration File (php.ini) Path => /usr/local/php5/lib


Also I do see the magical debug variables in the Eclipse output
_SERVER["XDEBUG_CONFIG"] => remote_enable=1 idekey=ECLIPSE_DBGP
_SERVER["DBGP_IDEKEY"] => ECLIPSE_DBGP

I tried deleting the PHP Executable and re-adding it but it did not make
any difference.

Can you help me progress one more step on this puzzle?

Thanks a lot,

Marius


Dave wrote:
> Might also be worth executing a simple script of phpinfo through debug
> to show that xdebug is loaded as the launcher creates a copy of the ini
> file from the one with your php executable.
>
> Dave Kelsey
>
>
> Marius Seritan wrote:
>> I had XDebug run previously in one of the July/August PDT release
>> candidates. I've been trying for 3 days to get it running in the
>> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
>> going a PHP Script Debugging configuration.
>>
>> 1. I downloaded the complete archive above and configured XDebug as
>> per the instructions
>> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported in
>> php -i
>> 3. The command line client provided with XDebug properly stops the
>> execution of the script.
>> 4. I check that port 9000 is not opened before Eclipse starts and it
>> is opened after Eclipse is up
>> 5. Debugging does not stop at the breakpoints.
>> 6. When I am debugging from the XDebug client I get output in
>> /tmp/xdebug.log (see below for my php.ini) but there is no output at
>> all when debugging in Eclipse.
>>
>>
>> --- php.ini ---
>> [xdebug]
>> xdebug.remote_enable=1
>> xdebug.remote_handler="dbgp"
>> xdebug.remote_port=9000
>> xdebug.remote_host=127.0.0.1
>> xdebug.remote_log=/tmp/xdebug.log
>> zend_extension=/usr/local/php5/lib/xdebug.so
>>
>>
>>
>> What can I try next?
>>
>> Thanks,
>>
>> Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54655 is a reply to message #54627] Tue, 25 September 2007 00:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mseritan.de-dash-co-de.com

Dave,

Creating a link of the php.ini file into the bin directory fixed my
problem!!
mmac:/usr/local/php5/bin mseritan$ sudo ln -s ../lib/php.ini .

I can now debug. Pfiuuuuuu.

This sounds like a bug or at least a behavior that needs to be documented :)

Thanks for the great work you did on XDebug and the Eclipse integration.

Marius

Marius Seritan wrote:
> Dave,
>
> This was a very good tip!
>
> I added a phpinfo() to the debugged php code. When running the php file
> directly from the command line I do see xdebug configs. The same thing
> for php -i. However when running from Eclipse I don't see the same
> xdebug entries even though the php.ini file is the right one
>
> Configuration File (php.ini) Path => /usr/local/php5/lib
>
>
> Also I do see the magical debug variables in the Eclipse output
> _SERVER["XDEBUG_CONFIG"] => remote_enable=1 idekey=ECLIPSE_DBGP
> _SERVER["DBGP_IDEKEY"] => ECLIPSE_DBGP
>
> I tried deleting the PHP Executable and re-adding it but it did not make
> any difference.
>
> Can you help me progress one more step on this puzzle?
>
> Thanks a lot,
>
> Marius
>
>
> Dave wrote:
>> Might also be worth executing a simple script of phpinfo through debug
>> to show that xdebug is loaded as the launcher creates a copy of the
>> ini file from the one with your php executable.
>>
>> Dave Kelsey
>>
>>
>> Marius Seritan wrote:
>>> I had XDebug run previously in one of the July/August PDT release
>>> candidates. I've been trying for 3 days to get it running in the
>>> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to get
>>> going a PHP Script Debugging configuration.
>>>
>>> 1. I downloaded the complete archive above and configured XDebug as
>>> per the instructions
>>> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported
>>> in php -i
>>> 3. The command line client provided with XDebug properly stops the
>>> execution of the script.
>>> 4. I check that port 9000 is not opened before Eclipse starts and it
>>> is opened after Eclipse is up
>>> 5. Debugging does not stop at the breakpoints.
>>> 6. When I am debugging from the XDebug client I get output in
>>> /tmp/xdebug.log (see below for my php.ini) but there is no output at
>>> all when debugging in Eclipse.
>>>
>>>
>>> --- php.ini ---
>>> [xdebug]
>>> xdebug.remote_enable=1
>>> xdebug.remote_handler="dbgp"
>>> xdebug.remote_port=9000
>>> xdebug.remote_host=127.0.0.1
>>> xdebug.remote_log=/tmp/xdebug.log
>>> zend_extension=/usr/local/php5/lib/xdebug.so
>>>
>>>
>>>
>>> What can I try next?
>>>
>>> Thanks,
>>>
>>> Marius
Re: XDebug problems on OS X, had this working in earlier RC [message #54732 is a reply to message #54655] Tue, 25 September 2007 08:53 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
It looks like you are using php from a web server, but when trying to look at
the contents of php.ini you where using the command line version. These are
2 different ways in which php gets invoked and as such they have different ways
in which the locate the php.ini file. The Command Line version is an instance
of a SAPI module and the web server integration is another (different) instance
of a SAPI module. Each SAPI module defines it's own way of locating the php.ini
file

for details on the rules to how php.ini files are located can be found at
http://www.php.net/manual/en/configuration.php (and possibly in other places)

Hope this helps.
Dave Kelsey

Marius Seritan wrote:
> Dave,
>
> Creating a link of the php.ini file into the bin directory fixed my
> problem!!
> mmac:/usr/local/php5/bin mseritan$ sudo ln -s ../lib/php.ini .
>
> I can now debug. Pfiuuuuuu.
>
> This sounds like a bug or at least a behavior that needs to be
> documented :)
>
> Thanks for the great work you did on XDebug and the Eclipse integration.
>
> Marius
>
> Marius Seritan wrote:
>> Dave,
>>
>> This was a very good tip!
>>
>> I added a phpinfo() to the debugged php code. When running the php
>> file directly from the command line I do see xdebug configs. The same
>> thing for php -i. However when running from Eclipse I don't see the
>> same xdebug entries even though the php.ini file is the right one
>>
>> Configuration File (php.ini) Path => /usr/local/php5/lib
>>
>>
>> Also I do see the magical debug variables in the Eclipse output
>> _SERVER["XDEBUG_CONFIG"] => remote_enable=1 idekey=ECLIPSE_DBGP
>> _SERVER["DBGP_IDEKEY"] => ECLIPSE_DBGP
>>
>> I tried deleting the PHP Executable and re-adding it but it did not
>> make any difference.
>>
>> Can you help me progress one more step on this puzzle?
>>
>> Thanks a lot,
>>
>> Marius
>>
>>
>> Dave wrote:
>>> Might also be worth executing a simple script of phpinfo through
>>> debug to show that xdebug is loaded as the launcher creates a copy of
>>> the ini file from the one with your php executable.
>>>
>>> Dave Kelsey
>>>
>>>
>>> Marius Seritan wrote:
>>>> I had XDebug run previously in one of the July/August PDT release
>>>> candidates. I've been trying for 3 days to get it running in the
>>>> pdt-all-in-one-1.0-R20070917-macosx-carbon.tar.gz. I am trying to
>>>> get going a PHP Script Debugging configuration.
>>>>
>>>> 1. I downloaded the complete archive above and configured XDebug as
>>>> per the instructions
>>>> 2. I have XDebug 2.0.0 installed in php 5.2.1 and properly reported
>>>> in php -i
>>>> 3. The command line client provided with XDebug properly stops the
>>>> execution of the script.
>>>> 4. I check that port 9000 is not opened before Eclipse starts and it
>>>> is opened after Eclipse is up
>>>> 5. Debugging does not stop at the breakpoints.
>>>> 6. When I am debugging from the XDebug client I get output in
>>>> /tmp/xdebug.log (see below for my php.ini) but there is no output at
>>>> all when debugging in Eclipse.
>>>>
>>>>
>>>> --- php.ini ---
>>>> [xdebug]
>>>> xdebug.remote_enable=1
>>>> xdebug.remote_handler="dbgp"
>>>> xdebug.remote_port=9000
>>>> xdebug.remote_host=127.0.0.1
>>>> xdebug.remote_log=/tmp/xdebug.log
>>>> zend_extension=/usr/local/php5/lib/xdebug.so
>>>>
>>>>
>>>>
>>>> What can I try next?
>>>>
>>>> Thanks,
>>>>
>>>> Marius
Previous Topic:Somebody pls. help me about my XDebug. Breakpoints don't work
Next Topic:HTML Templates in HEREDOC
Goto Forum:
  


Current Time: Fri Apr 26 13:46:16 GMT 2024

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

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

Back to the top