Netbeans Xdebug on Windows 7 "waiting for connection" WAMP

I've read many solutions for this common error Xdebug

, but it doesn't seem to solve my problem:

netbeans shows "Waiting for Connection (netbeans-xdebug)"

Netbeans does not connect to xdebug on wamp: "showing waiting for connection"

in phpinfo()

Xdebug looks to be configured correctly: xdebug phpinfo

And below is mine php.ini

:

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5

-5.5-vc11-x86_64.dll"
;
[xdebug]

xdebug.remote_enable=1
xdebug.remote_mode = req
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001

xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.idekey=netbeans-xdebug

      

Netbeans

: netbeans configuration

Tried disabling the firewall doesn't seem to help. Launching ideas to find out what's going on with mine Xdebug

.

+3


source to share


3 answers


Finally the managed Xdebug to work follows this article and another thing I need to do is when netbeans shows the message "Waiting for connection" I need to open the page manually in the browser (netbeans don't open the popup) added index.php?"XDEBUG_SESSION_START=netbeans-xdebug"

to the url -address and refresh the page and then the netbeans Xdebug status changed to start immediately :)



Thanks guys for the valuable tips !!!!

+1


source


Once you start debugging, check at the command line that netbeans is listening on port 9001:

C:\Users\***> netstat -ano | findstr 9001

  TCP    0.0.0.0:9001           0.0.0.0:0              LISTENING       20928
  TCP    [::]:9001              [::]:0                 LISTENING       20928

      

The PID at the end (20928 in my case) should be owned by netbeans, this can be checked from Windows Task Manager (after adding pid: view> select columns> pid)

If the PID is wrong or the port didn't get up, restart netbeans or restart the system and it will work

If netbeans has port 9001, it means that your browser is not listening or bind to netbeans. Sometimes the browser fails to establish a connection or cannot start correctly.



To do a manual connection attempt, you need to hit the debug button in netbeans and within the next minute or so (before it times out) open the following URL in your favorite browser (try another browser if it doesn't work)

localhost/<yoursite>/page/?XDEBUG_SESSION_START=netbeans-xdebug

      

You can also try switching to the built-in browser in the properties of the netbeans project.

You can also try changing the port from 9001 to something else like 9002 on both sides, this helps if any other program tries to connect to port 9001 or tries to listen on that port.

+2


source


Install

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5 -5.5-vc11-x86_64.dll";

inside the section [xdebug]

, not outside.
remove ;

from the end.

wrong:

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll";
[xdebug]
xdebug.remote_enable=1
.....

      

right:

[xdebug]
zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
xdebug.remote_enable=1
.....

      

try it

zend_extension_ts = "C: /.../ php_xdebug-2.2.5-5.5-VC11-x86_64.dll"

instaed

zend_extension = "C: /.../ php_xdebug-2.2.5-5.5-VC11-x86_64.dll"

+1


source







All Articles