This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Debug issue - setting Port no for symfony application and xdebug
Debug issue - setting Port no for symfony application and xdebug [message #103302] Fri, 30 July 2010 14:41 Go to next message
amitneha  is currently offline amitneha
Messages: 4
Registered: July 2010
Location: Nainital
Junior Member
Hi Everyone,

I have been bitten by the Symfony bug recently and I am still exploring the framework. I wish to know the following:

I have set up the symfony application to work on localhost:9000. The xdebug is also set to this port and when I debug with the NetBeans IDE, it says " Port already in use. Reconfigure the port". However, if I reconfigure the port, then the application and xdebug runs on different ports and Netbeans waits forever for xdebug to respond.

If I remove the port no information from apache settings for the application, the debugger works but symfony framework does not work. So please help on how to fix this issue so that xdebug and localhost are both able to point to the same port?

Thanks,
Amit Verma
Re: Debug issue - setting Port no for symfony application and xdebug [message #103309 is a reply to message #103302 ] Fri, 30 July 2010 15:28 Go to previous messageGo to next message
xplo  is currently offline xplo
Messages: 428
Registered: September 2008
Faithful Member
this is standard tcp/ip, 2 apps (apache and netbeans there) cannot listen on the same port on the same ip.

why would you need xdebug and apache on the same port anyway ~
Re: Debug issue - setting Port no for symfony application and xdebug [message #103337 is a reply to message #103309 ] Sat, 31 July 2010 07:44 Go to previous messageGo to next message
amitneha  is currently offline amitneha
Messages: 4
Registered: July 2010
Location: Nainital
Junior Member
Thanks xplo for your reply.

I am aware of the limitation you mentioned. However, I'll explain the problem again:

Symfony application does not work properly unless it has been configured to a port through the httpd.conf file of apache. For xdebug to work, it is unable to attach to this running application as there is a port conflict?

So, the situation is:
1) If I point xdebug to a different port, the symfony framework does not work? (But xdebug does work and I am able to debug the application though with improper symfony behavior)
2) If I point both to the same port, well - it will not work as mentioned in the reply below!

So, how to use Netbeans with xdebug for debugging symfony applications?

Thanks,
Amit Verma
Re: Debug issue - setting Port no for symfony application and xdebug [message #103348 is a reply to message #103337 ] Sat, 31 July 2010 13:28 Go to previous messageGo to next message
xplo  is currently offline xplo
Messages: 428
Registered: September 2008
Faithful Member
hi

symfony does not need a specific port, you can have multiple symfony website on the same port with subdirectory for example.

xdebug work fine with any port, it has nothing to do with the listening ports of apache.

I suggest you let xdebug on port 9000 (default behavior) and put apache on an other port.

Re: Debug issue - setting Port no for symfony application and xdebug [message #103363 is a reply to message #103302 ] Sat, 31 July 2010 20:49 Go to previous messageGo to next message
amitneha  is currently offline amitneha
Messages: 4
Registered: July 2010
Location: Nainital
Junior Member
Thanks for your reply xplo again,

However, I am not sure if you have not understood my problem correctly. I know that symfony does not need any specific port nor does xdebug. But both of them need one and when you are using Netbeans to debug it, they will conflict. I am not sure what apache port has to do with this problem as while setting symfony in httpd.conf, I am using a non-standard port anyway.

All I wish to know is how to debug symfony with netbeans on xampp, i.e. what port specific settings I have to do in httpd.conf and in netbeans to make it work?

Thanks,
Amit Verma
Re: Debug issue - setting Port no for symfony application and xdebug [message #103365 is a reply to message #103363 ] Sat, 31 July 2010 23:41 Go to previous message
xplo  is currently offline xplo
Messages: 428
Registered: September 2008
Faithful Member
you can use any port that you want, if you want your http listening on the port 20000 go for it on httpd.conf, you just need to not listening on the same port from xdebug server (netbeans) and your apache server.

you should go read some topic there http://forums.netbeans.org/php-users.html there s countless topic about xdebug/netbeans Smile

i switched recently to netbeans from eclipse and the debugger work really nicely (even better than eclipse pdt 2.2), especially on listening state that i like (not launching the browser from netbeans)
i use easy xdebug plugin for firebug to get a remote xdebug started from the browser and not from netbeans : https://addons.mozilla.org/en-US/firefox/addon/58688/

Previous Topic:installation
Next Topic:How to reach a already installed wiki
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software