Bug 9447 - php-xdebug not working
Summary: php-xdebug not working
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Spuhler
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 20:38 CET by Owen Savill
Modified: 2013-04-23 13:45 CEST (History)
0 users

See Also:
Source RPM: php-xdebug
CVE:
Status comment:


Attachments

Description Owen Savill 2013-03-18 20:38:55 CET
Using a fresh install of MGA 2, fully updated I installed Apache, PHP and php-xdebug-2.1.4-1.mga2.

Attempts to connect a PHP debugger, either debugclient or NetBeans results in a message "Waiting for debug server to connect." and then nothing more. 

The Apache logs show no errors or warnings.

A web page calling phpInfo() shows:
xdebug
xdebug support	enabled
Version 	2.1.4

Supported protocols	Revision
DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $

Directive	Local Value	Master Value
xdebug.auto_trace	Off	Off
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.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.manual_url	http://www.php.net	http://www.php.net
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	Off	Off
xdebug.remote_handler	gdb	gdb
xdebug.remote_host	localhost	localhost
xdebug.remote_log	no value	no value
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_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
Manuel Hiebel 2013-03-19 00:05:34 CET

Assignee: bugsquad => thomas
Source RPM: (none) => php-xdebug

Comment 1 Thomas Spuhler 2013-03-21 15:32:18 CET
I will address this.

Status: NEW => ASSIGNED

Comment 2 Thomas Spuhler 2013-03-22 19:17:48 CET
There are no patches for this version and no newer version of the 2.1 series than 2.1.4 has been released.
But it seems, the package needs to be re-built whenever php is being upgraded and we had a lot of those upgrades.
There is now a new build in /upgrades/testing. Would you please check if this resolves your problem.
Comment 3 Owen Savill 2013-03-22 22:44:44 CET
Sorry, I'm not clear where you mean. I've had a look in media/core/updates_testing but I cannot see a php-xdebug. Where should I be looking?
Comment 4 Thomas Spuhler 2013-03-23 17:36:15 CET
Did you refresh the media,or has the mirror been updated?
This link has it:
ftp://ftp.linuxcabal.org/pub/mirrors/Mageia/distrib/2/i586/media/core/updates_testing/
Comment 5 Owen Savill 2013-03-25 23:14:38 CET
Sadly this has not worked. Also now I'm getting 

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql.so' - /usr/lib64/libmysqlclient.so.18: version `libmysqlclient_16' not found (required by /usr/lib64/php/extensions/mysql.so) in 

which is a bigger issue as it completely breaks web access to MySQL.
Comment 6 Owen Savill 2013-03-25 23:27:43 CET
Fixed the PHP warning by
rm libmysqlclient.so.18
ln -s libmysqlclient.so.16.0.0 libmysqlclient.so.18

but xdebug is not working.
Comment 7 Owen Savill 2013-03-25 23:41:21 CET
Got xdebug working, needed to set the following in /etc/php.d/A29_xdebug.ini

xdebug.remote_enable = 1 (was 0)
xdebug.remote_handler = 'dbgp' (was 'gdb')

Thanks for all you help.
Comment 8 Owen Savill 2013-04-01 20:47:16 CEST
This doesn't appear to be working in MGA 3 Beta 4.
Comment 9 Owen Savill 2013-04-01 21:07:51 CEST
Please ignore the previous comment, it's working just fine in MGA 3. Sorry for the confusion.
Comment 10 Thomas Spuhler 2013-04-22 18:10:49 CEST
Can we close this?
Comment 11 Owen Savill 2013-04-23 13:45:06 CEST
Yes, sorry.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.