Questions tagged [xdebug]

Xdebug is a PHP extension used for debugging. It supports stack and function traces and profiling information.

39 questions
11
votes
2 answers

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by creating a syntax error in the Acme/Demo bundle. Why I…
jchatard
  • 213
  • 2
  • 6
8
votes
4 answers

Is it possible to set up PHP-FPM with different pool-options (xdebug enabled / xdebug disabled)

I've a LEMP environment and need the option to separate all development subdomains from staging (development with xdebug staging without). dev.projectX.mydomain.tld staging.projectX.mydomain.tld Therefore I set up two pools php-dev and php-stage,…
4
votes
5 answers

Unable to install xdebug - undefined symbol: zend_post_startup_cb

I uninstalled php7 with apt-get purge php and installed it again with zypper in php7 php7-mysql. Then I followed the install instructions of xdebug and restarted apache with systemctl restart apache2, but there is no xdebug in my phpinfo(), only…
Black
  • 419
  • 6
  • 18
4
votes
1 answer

How enable xdebug only for one host in Nginx

How i can enable xdebug only for one virtualserver in Nginx? In Apache i can config that via .htaccess("php_value xdebug.remote_enable On"), for example.
nalcheg
  • 81
  • 8
4
votes
1 answer

Apache2 enable .ini mod in /etc/php5/mods-available

One can use the a2enmod [module] command to enable mods located in /etc/apache2/mods-available. But what about mods in /etc/php5/mods-available? When I try to enable a mod in this directory (eg. xdebug), I get the following error: ERROR: Module…
GuiTeK
  • 185
  • 1
  • 4
4
votes
3 answers

Install xdebug for php 5.3.17 on centos 6.3 (final)

I'm really having difficulty finding out how to install xdebug for php 5.3.17 on centos 6.3. I've tried this link (for centos 5.6 admittedly) but had no luck. Can anyone point to the right RPM repository or yum command please? Many thanks
Larry B
  • 261
  • 4
  • 5
  • 18
3
votes
1 answer

Xdebug Profiler Aggregate always crashes (xdebug.profiler_aggregate=1 causes coredump in xdebug.so xdebug_profiler_output_aggr_data())

Whenever I go to localhost I get a 404 error, until I mark xdebug.profiler_aggregate=0 The reason why is xdebug.so coredumps (SEGFAULT) [Xdebug] zend_extension=/usr/lib/php/20160303/xdebug.so xdebug.remote_enable=1 xdebug.remote_connect_back =…
Jonathan
  • 252
  • 1
  • 13
3
votes
1 answer

XDEBUG/PHP doesn't dump profile even when set up properly?

I installed xdebug from source, but also tried my package manager (separately) and they both are loaded correctly (verified by restarting Apache and seeing the xdebug copyright info in phpinfo()) but they do not dump profiling information. Out of…
John D.
3
votes
2 answers

Configuration parameter in xdebug for allowing multiple hosts on remote machine

I am working on one web application. The project located on my linux box i.e. server. We are remotely accessing this machine from windows. I am using xdebug for debugging alongwith Eclipse PDT. xdebug is installed on my server. Below configuration…
user52534
  • 137
  • 1
  • 3
3
votes
3 answers

OS X Address Not Available - How do I open this port?

I am trying to get xdebug working on my snow leopard box. It uses port 9000. When I ask slickedit to monitor this port is gives an error that the address is not available. I've gone to canyouseeme.org to see if the port is open. It says the port is…
GeoffreyF67
  • 497
  • 2
  • 7
  • 14
3
votes
1 answer

Ubuntu: Problem installing Xdebug

I am trying to Install XDebug on Ubuntu latest version but get the following error: pecl install Xdebug WARNING: configuration download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable. Change download_dir config…
sanders
  • 103
  • 2
  • 12
2
votes
1 answer

xdebug remote centos host from mac

I have a server running CentOS7, PHP7.0.7 with php-fpm, and SELinux. I am trying to debug a PHP script running on that server. And I have a Mac machine that runs PHPstorm where I intend to do the debugging. I followed this guide to Phpstorm. Here's…
Vasily802
  • 121
  • 5
2
votes
5 answers

"sudo apt-get install php7.0-dev" not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package lists... Done Building dependency tree Reading state…
Guerrilla
  • 193
  • 5
  • 18
2
votes
1 answer

Ubuntu 12.04 install xdebug

I´m trying to get xdebug running on an Ubuntu 12.04 webserver with php 5.3 I fired apt-get install php5-xdebug after that I´ve edited my php.ini to enable it zend_extension="/usr/lib/php5/20090626/xdebug.so" xdebug.default_enable =…
Anatol
  • 349
  • 2
  • 6
  • 19
2
votes
1 answer

How do I hide the warning message "connect_to localhost port 9000: failed." when I do a reverse SSH tunnel?

I am currently using a reverse SSH tunnel ssh user@myserver.com -R 9000:localhost:9000 to forward Xdebug (a PHP debugging tool) packets from my server to my local machine. I also have the feature xdebug.remote_autostart=1 so that any site I visit…
hobbes3
  • 545
  • 2
  • 9
  • 23
1
2 3