Netbeans Shows "Waiting For Connection (Netbeans-Xdebug)"

netbeans shows Waiting For Connection (netbeans-xdebug)

Have you rectified the issue ? If not then please try this.

1.) php.ini file content

[xDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_host="localhost:81"
xdebug.remote_host=192.168.1.5
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

xdebug.remote_host=192.168.1.5 - This is the IPv4 address of my system, I changed to this because I couldn't debug with localhost and 127.0.0.1.

in NetBeans IDE, open Tools-> Options -> PHP -> Debugging. The values of debugger port and Session Id should match with the port and idekey specified in php.ini.

Now save php.ini, restart Apache and try to debug.

Thanks Johnson

Netbeans waiting for connection to XDEBUG

On Ubuntu 13.04 64bit php 5.4.9-4 Xdebug v2.2.3 netbeans 7.4

I have same problem and have solve it by:

1. go on http://xdebug.org/wizard.php follow the instructions to compile your own xdebug.so

2. in netbean 7.4 general options (sorry I haven't reputation 10 to post image)
test connection. be sure correct settings on Proxy:
to me "No Proxy" is working.

3. in php options debugging tab change xdebug setting port to other than 9001 or 9000.
I choose 9002 but you can try until you find a free port (if port is not free nb tell you)

4. in php.ini OR for ubuntu users in /etc/php5/conf.d/20-xdebug.ini

zend_extension=/usr/lib/php5/20100525/xdebug.so #where you ave put your reconpiled xdebug.so

[xdebug]

xdebug.remote_autostart=0

xdebug.remote_enable=1

xdebug.remote_handler="dbgp"

xdebug.remote_mode="req"

xdebug.remote_port=9002 # the port you have found free and set in netbeans above

xdebug.remote_host=127.0.0.1

xdebug.profiler_enable=0

xdebug.profiler_output_dir="/tmp/"

xdebug.idekey="netbeans-xdebug"

xdebug.remote_log="/home/#user_name#/xdebug.log" #your user name

5. sudo service apache2 restart

after do this I can debug php again.

Waiting for connection(netbeans-xDebug)-php-XAMPP

Problem solved. I tried all but nothing works. Finally I unistalled XAMPP and followed the steps from http://xdebug.org/wizard.php. My final xDebug part in php.ini file is(only uncommented content)

[XDebug]

zend_extension = "C:\xampp\php\ext\php_xdebug-2.4.0rc2-5.6-vc11.dll"

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "127.0.0.1"

xdebug.remote_port=9000

I thought my problem casued by the configuration in apach server. Because the first time when I wanted to start Apach server from XAMPP control panel, it said error because of port block. So I changed the port number instead of using the default port. And after I reinstalled the XAMPP control panel, I restarted the computer and started Apach server immediatelty to make sure nothing else occupied the port. And all works great. So it might be the problem. Hope useful.



Related Topics



Leave a reply



Submit