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


Groups > comp.lang.php > #14692 > unrolled thread

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

Started byRAM <jivanmukta@poczta.onet.pl>
First post2014-12-04 05:01 -0800
Last post2014-12-04 14:07 -0500
Articles 5 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  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

#14692 — I don't see xdebug in "php -i" and "php -m"

FromRAM <jivanmukta@poczta.onet.pl>
Date2014-12-04 05:01 -0800
SubjectI don't see xdebug in "php -i" and "php -m"
Message-ID<cd72f277-ab5d-4a81-bd18-f21b47bb99df@googlegroups.com>
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 - it means I added to my php.ini:

[Zend]
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dpgp
xdebug.rmote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_log="/var/log/xdebug.log"

(xdebug.so path is OK) and then I restarted Apache. In http://localhost/phpinfo.php I can see:

xdebug
xdebug support	enabled
Version 	2.2.5
IDE Key 	no value
Supported protocols	Revision
DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $
Directive	Local Value	Master Value
xdebug.auto_trace	Off	Off
xdebug.cli_color	0	0
xdebug.collect_assignments	Off	Off
xdebug.collect_includes	On	On
xdebug.collect_params	0	0
xdebug.collect_return	Off	Off
xdebug.collect_vars	Off	Off
xdebug.coverage_enable	On	On
xdebug.default_enable	On	On
xdebug.dump.COOKIE	no value	no value
xdebug.dump.ENV	no value	no value
xdebug.dump.FILES	no value	no value
xdebug.dump.GET	no value	no value
xdebug.dump.POST	no value	no value
xdebug.dump.REQUEST	no value	no value
xdebug.dump.SERVER	no value	no value
xdebug.dump.SESSION	no value	no value
xdebug.dump_globals	On	On
xdebug.dump_once	On	On
xdebug.dump_undefined	Off	Off
xdebug.extended_info	On	On
xdebug.file_link_format	no value	no value
xdebug.idekey	no value	no value
xdebug.max_nesting_level	100	100
xdebug.overload_var_dump	On	On
xdebug.profiler_aggregate	Off	Off
xdebug.profiler_append	Off	Off
xdebug.profiler_enable	Off	Off
xdebug.profiler_enable_trigger	Off	Off
xdebug.profiler_output_dir	/tmp	/tmp
xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p
xdebug.remote_autostart	Off	Off
xdebug.remote_connect_back	Off	Off
xdebug.remote_cookie_expire_time	3600	3600
xdebug.remote_enable	On	On
xdebug.remote_handler	dpgp	dpgp
xdebug.remote_host	127.0.0.1	127.0.0.1
xdebug.remote_log	/var/log/xdebug.log	/var/log/xdebug.log
xdebug.remote_mode	req	req
xdebug.remote_port	9000	9000
xdebug.scream	Off	Off
xdebug.show_exception_trace	Off	Off
xdebug.show_local_vars	Off	Off
xdebug.show_mem_delta	Off	Off
xdebug.trace_enable_trigger	Off	Off
xdebug.trace_format	0	0
xdebug.trace_options	0	0
xdebug.trace_output_dir	/tmp	/tmp
xdebug.trace_output_name	trace.%c	trace.%c
xdebug.var_display_max_children	128	128
xdebug.var_display_max_data	512	512
xdebug.var_display_max_depth	3	3

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.

[toc] | [next] | [standalone]


#14693

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-12-04 08:31 -0500
Message-ID<m5pnmj$im4$1@dont-email.me>
In reply to#14692
On 12/4/2014 8:01 AM, 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 - it means I added to my php.ini:
> 
> [Zend]
> zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
> xdebug.remote_enable=1
> xdebug.remote_handler=dpgp
> xdebug.rmote_mode=req
> xdebug.remote_host=127.0.0.1
> xdebug.remote_port=9000
> xdebug.remote_log="/var/log/xdebug.log"
> 
> (xdebug.so path is OK) and then I restarted Apache. In http://localhost/phpinfo.php I can see:
> 
> xdebug
> xdebug support	enabled
> Version 	2.2.5
> IDE Key 	no value
> Supported protocols	Revision
> DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $
> Directive	Local Value	Master Value
> xdebug.auto_trace	Off	Off
> xdebug.cli_color	0	0
> xdebug.collect_assignments	Off	Off
> xdebug.collect_includes	On	On
> xdebug.collect_params	0	0
> xdebug.collect_return	Off	Off
> xdebug.collect_vars	Off	Off
> xdebug.coverage_enable	On	On
> xdebug.default_enable	On	On
> xdebug.dump.COOKIE	no value	no value
> xdebug.dump.ENV	no value	no value
> xdebug.dump.FILES	no value	no value
> xdebug.dump.GET	no value	no value
> xdebug.dump.POST	no value	no value
> xdebug.dump.REQUEST	no value	no value
> xdebug.dump.SERVER	no value	no value
> xdebug.dump.SESSION	no value	no value
> xdebug.dump_globals	On	On
> xdebug.dump_once	On	On
> xdebug.dump_undefined	Off	Off
> xdebug.extended_info	On	On
> xdebug.file_link_format	no value	no value
> xdebug.idekey	no value	no value
> xdebug.max_nesting_level	100	100
> xdebug.overload_var_dump	On	On
> xdebug.profiler_aggregate	Off	Off
> xdebug.profiler_append	Off	Off
> xdebug.profiler_enable	Off	Off
> xdebug.profiler_enable_trigger	Off	Off
> xdebug.profiler_output_dir	/tmp	/tmp
> xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p
> xdebug.remote_autostart	Off	Off
> xdebug.remote_connect_back	Off	Off
> xdebug.remote_cookie_expire_time	3600	3600
> xdebug.remote_enable	On	On
> xdebug.remote_handler	dpgp	dpgp
> xdebug.remote_host	127.0.0.1	127.0.0.1
> xdebug.remote_log	/var/log/xdebug.log	/var/log/xdebug.log
> xdebug.remote_mode	req	req
> xdebug.remote_port	9000	9000
> xdebug.scream	Off	Off
> xdebug.show_exception_trace	Off	Off
> xdebug.show_local_vars	Off	Off
> xdebug.show_mem_delta	Off	Off
> xdebug.trace_enable_trigger	Off	Off
> xdebug.trace_format	0	0
> xdebug.trace_options	0	0
> xdebug.trace_output_dir	/tmp	/tmp
> xdebug.trace_output_name	trace.%c	trace.%c
> xdebug.var_display_max_children	128	128
> xdebug.var_display_max_data	512	512
> xdebug.var_display_max_depth	3	3
> 
> 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.
> 

You should be asking on the xdebug mailing list.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14694

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-12-04 09:24 -0500
Message-ID<m5pqpu$uhd$1@dont-email.me>
In reply to#14692
On 12/4/2014 8:01 AM, 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 - it means I added to my php.ini:
> 
> [Zend]
> zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
> xdebug.remote_enable=1
> xdebug.remote_handler=dpgp
> xdebug.rmote_mode=req
> xdebug.remote_host=127.0.0.1
> xdebug.remote_port=9000
> xdebug.remote_log="/var/log/xdebug.log"
> 
> (xdebug.so path is OK) and then I restarted Apache. In http://localhost/phpinfo.php I can see:
> 
> xdebug
> xdebug support	enabled
> Version 	2.2.5
> IDE Key 	no value
> Supported protocols	Revision
> DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $
> Directive	Local Value	Master Value
> xdebug.auto_trace	Off	Off
> xdebug.cli_color	0	0
> xdebug.collect_assignments	Off	Off
> xdebug.collect_includes	On	On
> xdebug.collect_params	0	0
> xdebug.collect_return	Off	Off
> xdebug.collect_vars	Off	Off
> xdebug.coverage_enable	On	On
> xdebug.default_enable	On	On
> xdebug.dump.COOKIE	no value	no value
> xdebug.dump.ENV	no value	no value
> xdebug.dump.FILES	no value	no value
> xdebug.dump.GET	no value	no value
> xdebug.dump.POST	no value	no value
> xdebug.dump.REQUEST	no value	no value
> xdebug.dump.SERVER	no value	no value
> xdebug.dump.SESSION	no value	no value
> xdebug.dump_globals	On	On
> xdebug.dump_once	On	On
> xdebug.dump_undefined	Off	Off
> xdebug.extended_info	On	On
> xdebug.file_link_format	no value	no value
> xdebug.idekey	no value	no value
> xdebug.max_nesting_level	100	100
> xdebug.overload_var_dump	On	On
> xdebug.profiler_aggregate	Off	Off
> xdebug.profiler_append	Off	Off
> xdebug.profiler_enable	Off	Off
> xdebug.profiler_enable_trigger	Off	Off
> xdebug.profiler_output_dir	/tmp	/tmp
> xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p
> xdebug.remote_autostart	Off	Off
> xdebug.remote_connect_back	Off	Off
> xdebug.remote_cookie_expire_time	3600	3600
> xdebug.remote_enable	On	On
> xdebug.remote_handler	dpgp	dpgp
> xdebug.remote_host	127.0.0.1	127.0.0.1
> xdebug.remote_log	/var/log/xdebug.log	/var/log/xdebug.log
> xdebug.remote_mode	req	req
> xdebug.remote_port	9000	9000
> xdebug.scream	Off	Off
> xdebug.show_exception_trace	Off	Off
> xdebug.show_local_vars	Off	Off
> xdebug.show_mem_delta	Off	Off
> xdebug.trace_enable_trigger	Off	Off
> xdebug.trace_format	0	0
> xdebug.trace_options	0	0
> xdebug.trace_output_dir	/tmp	/tmp
> xdebug.trace_output_name	trace.%c	trace.%c
> xdebug.var_display_max_children	128	128
> xdebug.var_display_max_data	512	512
> xdebug.var_display_max_depth	3	3
> 
> 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.
> 

Additionally - you probably have a different configuration file for your
web server PHP and your CLI php.  Run phpinfo() from the command line
and see which php.ini it is using.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14695

From"J.O. Aho" <user@example.net>
Date2014-12-04 18:02 +0100
Message-ID<cebicrFh1gaU1@mid.individual.net>
In reply to#14692
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.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#14696

FromMatthew Carter <m@ahungry.com>
Date2014-12-04 14:07 -0500
Message-ID<874mtbnshi.fsf@ahungry.com>
In reply to#14695
"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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web