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"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Matthew Carter <m@ahungry.com>
Newsgroups comp.lang.php
Subject Re: I don't see xdebug in "php -i" and "php -m"
Date Thu, 04 Dec 2014 14:07:53 -0500
Organization Ahungry (http://ahungry.com)
Lines 36
Message-ID <874mtbnshi.fsf@ahungry.com> (permalink)
References <cd72f277-ab5d-4a81-bd18-f21b47bb99df@googlegroups.com> <cebicrFh1gaU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="7c986cd4736462de309a749b207746fe"; logging-data="12047"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mSxvrkQ2TjvU1tKHf1chY"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:s0dxfZciT0tjL+S6IhOYQKpR6ik= sha1:Ij06nRS58ymwDcr7OlpiLaM4HCc=
Xref csiph.com comp.lang.php:14696

Show key headers only | 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