Page 1 of 1
PHP debug

Posted:
Mar 14th, '13, 01:17
by OS1
I'm hoping someone can help me get PHP debug working within NetBeans.
This all worked fine with Mandriva 2010.2 but has stopped working now in MGA 2. I have cloned the LAMP directories and the NetBeans directory. LAMP starts up ok with Zend not throwing any errors. /opt/lampp/etc/php.ini has all the xdebug options that it had before. NetBeans is configured to use PHP debugging. But when I click the debug project button NetBeans just stalls with "Waiting for Connection (netbeans-xdebug)". I've turned the Firewall off but it makes no difference.
Suggestions would be most welcome.
Thanks,
Re: PHP debug

Posted:
Mar 14th, '13, 20:45
by doktor5000
How did you install Lamp and Netbeans?
Re: PHP debug

Posted:
Mar 15th, '13, 11:37
by OS1
In this particular instance by copying with 'cp -raf' the /opt directory they were installed with from another disk.
Initially, in Mandriva 2010, LAMP would have been installed from the tar file and NetBeans would have been installed from the .sh install script.
Re: PHP debug

Posted:
Mar 15th, '13, 17:53
by doktor5000
Please try again with a clean install. Did you try using the Mageia packages before you copied the old install?
Re: PHP debug

Posted:
Mar 17th, '13, 23:14
by OS1
Sorry for the delay, I thought I had posted a reply but there's nothing here. I've probably posted a non-sensical reply to some other thread or forum altogether!
I've now installed Apache, php, mod-php and php-xdebug from the Mageia repositories and it still makes no difference. The client just sits there waiting for a connection.
If I look at a phpInfo() output I can see that PHP thinks that xdebug is active.
Both NetBeans and debugclient just sit there with a trying to connect message.
What else should I do? I don't know at all how it interacts with Apache. Would anything be in any logs at all. The firewall is off, would it be worth using Wireshark to see if anything is even trying to talk to port 9000?
Re: PHP debug

Posted:
Mar 18th, '13, 11:06
by doktor5000
Sorry, for PHP and Apache and stuff itself, i really can't help you :/
Re: PHP debug

Posted:
Mar 18th, '13, 14:23
by OS1
I think I should raise this as a system bug as it always worked in Mandriva and should work in Mageia especially since the packages are in the repositories.
Re: PHP debug

Posted:
Mar 18th, '13, 18:28
by doktor5000