Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14696

Re: I don't see xdebug in "php -i" and "php -m"

From Matthew Carter <m@ahungry.com>
Newsgroups comp.lang.php
Subject Re: I don't see xdebug in "php -i" and "php -m"
Date 2014-12-04 14:07 -0500
Organization Ahungry (http://ahungry.com)
Message-ID <874mtbnshi.fsf@ahungry.com> (permalink)
References <cd72f277-ab5d-4a81-bd18-f21b47bb99df@googlegroups.com> <cebicrFh1gaU1@mid.individual.net>

Show all headers | View raw


"J.O. Aho" <user@example.net> writes:

> On 04/12/14 14:01, RAM wrote:
>> I use PHP Version 5.3.10-1ubuntu3.15.  I installed and then I
>> configured xdebug according to
>> http://wiki.netbeans.org/HowToConfigureXDebug#How_to_on_Linux
>>
>> The problem is that netbeans doesn't stop at breakpoints. When I run
>> "php -i" and "php -m" I don't see xdebug. There's no file
>> /var/log/xdebug.log. I was configuring xdebug a few times and it was
>> working fine.
>> Please help. Thanks in advance.
>>
>
> open a terminal or use console and run: php -i phpinfo
>
> compare what you get for "Loaded Configuration File" and compare that
> with what you get when you look at the result trough your apache.
>
> If the path to the ini files are different, then you have two
> different files to edit.

Heres a one liner for you (well, if it wasn't being broke up by usenet
guidelines, remove the line breaks if you do use it):

diff <(curl -s 'http://localhost/phpinfo.php' | grep 'Loaded Conf' |
  sed -e 's!.*>\(/.*\) .*!Web: \1!g') <(php -i |
  grep 'Loaded Conf'|awk '{print "CLI: "$5}'

Obviously point localhost/phpinfo.php to whever you are running your
server side phpinfo script (and remove the Web:/CLI: labels if you don't
want output if they are the same).

-- 
Matthew Carter (m@ahungry.com)
http://ahungry.com

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

I don't see xdebug in "php -i" and "php -m" RAM <jivanmukta@poczta.onet.pl> - 2014-12-04 05:01 -0800
  Re: I don't see xdebug in "php -i" and "php -m" Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-04 08:31 -0500
  Re: I don't see xdebug in "php -i" and "php -m" Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-04 09:24 -0500
  Re: I don't see xdebug in "php -i" and "php -m" "J.O. Aho" <user@example.net> - 2014-12-04 18:02 +0100
    Re: I don't see xdebug in "php -i" and "php -m" Matthew Carter <m@ahungry.com> - 2014-12-04 14:07 -0500

csiph-web