Xbebug remote debugging problems

Hello,

I am facing some troubles with debugging a remote server.

Everything is configured well: debugger, server, mapping ....
When I launch the file as  PH¨P web application  debug mode,
The browser opens, with the file correctly but the page load without stopping in the breakpoint!!

To enable this debugging mode, the xdebug must be installed in the remote server?
Did I missed somthing?

Thanks a lot
Safwen


4 comments
Comment actions Permalink

Hello safwen,

     To enable this debugging mode, the xdebug must be installed in the remote server?


Yes, you need to install xdebug extension on your development server (see details - http://confluence.jetbrains.net/display/WI/Xdebug+installation+guide).

Thank you for feedback!

0
Comment actions Permalink

Hi Nikolay,

Yes, I have installed it.
But my local editor is behind firewall, rooter... so debug data can't be sent from the debug server to my php editor....

Thanks
SAFWEN


0
Comment actions Permalink

Hi safwen,

In this case you have to configure both

  1. software firewall (to allow PhpStorm to accept incoming connections on xdebug port, or just allow any activity for PhpStorm). If  it's a hardware firewall -- just allow incoming connections on xdebug port.
  2. router -- you need to configure port forwarding (or whatever the name is used for this functionality in your specific router) to redirect all incoming connections on xdebug to your computer. This site will help you to do that -- just select your router make and model. If it is not in the list, then consult router manual or look at similar model and try figuring it out yourself.


Similar thread (may be useful):


P.S.
In case you cannot configure port forwarding on your router for whatever reason, then have a look at SSH tunneling (I do not know what server OS you have there and how much control you have over it) -- just google for "ssh xdebug" .. or search for the same at http://stackoverflow.com/

0
Comment actions Permalink

Hello,

Thanks for all these data :)
Unforunately, I don not access to a rooter neither to a firewall.
We are behind the orporation architecture.
Altough, I have fin a solution: SSH tunneling with port forwarding :)

And this worked.
Best regards

Safwen


0

Please sign in to leave a comment.