PHP debug

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

PHP debug

Postby OS1 » Mar 14th, '13, 01:17

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,
OS1
 
Posts: 43
Joined: Jun 2nd, '12, 19:24

Re: PHP debug

Postby doktor5000 » Mar 14th, '13, 20:45

How did you install Lamp and Netbeans?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP debug

Postby OS1 » Mar 15th, '13, 11:37

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.
OS1
 
Posts: 43
Joined: Jun 2nd, '12, 19:24

Re: PHP debug

Postby doktor5000 » Mar 15th, '13, 17:53

Please try again with a clean install. Did you try using the Mageia packages before you copied the old install?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP debug

Postby OS1 » Mar 17th, '13, 23:14

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?
OS1
 
Posts: 43
Joined: Jun 2nd, '12, 19:24

Re: PHP debug

Postby doktor5000 » Mar 18th, '13, 11:06

Sorry, for PHP and Apache and stuff itself, i really can't help you :/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP debug

Postby OS1 » Mar 18th, '13, 14:23

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.
OS1
 
Posts: 43
Joined: Jun 2nd, '12, 19:24

Re: PHP debug

Postby doktor5000 » Mar 18th, '13, 18:28

Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest