Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7731227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:25:42+00:00 2026-06-01T06:25:42+00:00

I installed Xdebug and all was fine, until suddenly it stopped working. phpinfo() gives

  • 0

I installed Xdebug and all was fine, until suddenly it stopped working. phpinfo() gives a nice XDebug output with all variables.

php -m | grep deb

also gives twice XDebug (for Zend and PHP), so again looks just fine. My php.ini has these lines:

zend_extension=/usr/lib/php5/20090626/xdebug.so
;extension=xdebug.so
xdebug.remote_host=localhost
xdebug.remote_enable=on
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=1

And yet, when running this code with should check XDebug (from Netbeans docs) it’s just stuck. So No IDE is working with XDebug.

<?php
$address = '127.0.0.1';
$port = 9001;
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
socket_bind($sock, $address, $port) or die('Unable to bind');
socket_listen($sock);
$client = socket_accept($sock);
echo "connection established: $client";
socket_close($client);
socket_close($sock);

Also, according to XDebug installation, I went twice throught the steps. What is wrong with my config? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:25:43+00:00Added an answer on June 1, 2026 at 6:25 am

    At the end, left with only two solutions – to reinstall the Ubuntu OS or to install a new VM especially for xdebug, I’m going for the second one.
    Funny thing is, everything was working according to the “RTM” (f=freaking). One thing that I couldn’t figure out is how to read the logs for XDebug in order to understand where the real problem is.

    UPDATE

    After some struggling, I deleted every single line related to xdebug from every php.ini that I had. And moved these lines to /etc/php5/conf.d/xdebug.ini. Restarted Apache, and then PHPStorm, and it works.
    P.S. in the middle, I tried to install xdebug with pecl, from github, and the standard Ubuntu version. I think the one that I compiled is currently working. And.. the log gets updated as well.

    ;xdebug configuration
    zend_extension = /usr/lib/php5/20090626/xdebug.so
    xdebug.remote_host = 127.0.0.1
    xdebug.remote_enable = 1
    xdebug.remote_port = 9000
    xdebug.remote_handler = dbgp
    xdebug.remote_mode = req
    xdebug.profiler_enable=0
    xdebug.profiler_enable_trigger=1
    xdebug.remote_autostart=1
    xdebug.idekey=PHPSTORM
    xdebug.remote_log="/tmp/xdebug.log"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get
I've succecfully installed xdebug 2.2.0-dev and my phpinfo() shows all the options, but I
I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect
BACKGROUND Using Xdebug with PHP and Komodo IDE, and Eclipse PDT. Xdebug is installed
I've installed PHP 5.3.8 on my localhost and I tried to configure Xdebug, but
I have installed xdebug on my computer with windows and it works fine by
The administrator has installed Xdebug 2.1.1 in our shared PHP 5.3.0 server in order
I have PHPUnit and xdebug installed, and in my php.ini files for CLI I've
I have installed and setup xdebug to debug php application. However I was wonder
How to know the xdebug version I have installed? Regards Javi

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.