| 
| XDebug problems on OS X, had this working in earlier RC [message #54487] | Mon, 24 September 2007 14:27  |  | 
| Eclipse User  |  |  |  |  | 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 #54732 is a reply to message #54655] | Tue, 25 September 2007 04:53  |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.07173 seconds