I want to use Netbeans 6.9.1 with xdebug 2.1.0 on Linux version 2.6.32-5-486 (Debian 2.6.32-30). PHP and xdebug is both installed from Debian packages.
But when I start the debugging, the browser opens the page without any breaks and Netbeans says: "Waiting for Connection (netbeans-xdebug)" and nothing happens.
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
And in the xdebug part of the phpinfo everything is correctly listed up.
I have tested xdebug with the script on this page:
The result was something like: "connection established: Resource id #5"
So I think xdebug works correctly.
Do you need any more information?
Installed Ubuntu 10.10
Via Applications installed Netbeans and php-xdebug
1. Create new PHP application with phpinfo(); in the index.php
2. Run the project, you can see xdebug is properly installed and running
3. Debug the project, all good and running OK
4. Add sources of an existing PHP (earlier created) in a folder on the same level as the new created php application above
5. In netbeans add a new project and choose existing sources.
6. Select the folder of the existing source
7. Debug the project, NOT OK, debugger is waiting and cannot connect!!
I see that there are lots of questions on the internet which are not answered. I cannot explain either why the existing project is not running but the new project is.
I included the source code of teh existing code. Once I copied teh existing code to the code of the new project it was running.
It cannot be a rights issue, I have set all to chmod 777 *.
I could not attach a tar file withthe source, unfortunately..
Hi. In my case the debuging does not work with a new project, too.
I still have no solution :-(
Reassigning to the module owner.
I tried exactly the same settings as you have (naitsirch), but I can't reproduce it. After cca 2 secs "Waiting for..." disappears and debug sesion starts. I really don't know what to advise you...
Strange... okay, what does happen if I start debugging? Does NetBeans start listening on a port or how does it work?
I found the solution of the problem. Netbeans had neither connection to the internet nor to the LAN. It has the same reason like in Bug #198613, which was committed by me, too.
But when I added this option "-J-Djava.net.preferIPv4Stack=true" to the netbeans.conf, the whole problem was resolved!
Here's the full line in the config file:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Djava.net.preferIPv4Stack=true"
But in my opinion, netbeans should check if there is a network connection and if not, it should try to connect to the network via IPv4, or is it not possible?
Thanks for your evaluation. I think that this should be fixed in some higher NetBeans infrastructure if it affects all NetBeans modules. Thanks.
But I'm afraid, that we can't do anything with that...it seems that Java socket creates ipv6 socket everytime if it's possible, unless you set that property you described.
(In reply to naitsirch from comment #8)
> I found the solution of the problem. Netbeans had neither connection to the
> internet nor to the LAN. It has the same reason like in Bug #198613, which
> was committed by me, too.
> But when I added this option "-J-Djava.net.preferIPv4Stack=true" to the
> netbeans.conf, the whole problem was resolved!
> Here's the full line in the config file:
> netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m
> -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true
> -J-Dsun.java2d.noddraw=true -J-Djava.net.preferIPv4Stack=true"
> But in my opinion, netbeans should check if there is a network connection
> and if not, it should try to connect to the network via IPv4, or is it not
this configuration is already done by default !!!!
this does not help!!!