XDebug problems on OS X, had this working in earlier RC [message #54487] |
Mon, 24 September 2007 18:27 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03337 seconds