Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to configure Eclipse to debug Drupal/PHP on a remote development server?
How to configure Eclipse to debug Drupal/PHP on a remote development server? [message #1761291] Tue, 09 May 2017 13:41 Go to next message
Claudio Claudio is currently offline Claudio ClaudioFriend
Messages: 2
Registered: May 2017
Junior Member
Hi all,
I'd like to debug a PHP application (in this case a Drupal site) on a *remote* server (a virtual machine used to develop the site).
I've installed on the remote server xdebug and I've added these settings to the file php.ini:
zend_extension = /usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=<the_ip_of_my_pc>
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"

Now what are the steps that should I follow to configure Eclipse Neon2 on my pc?
Should I have a local copy of the site?
Now I'm editing the files with the Remote Explore with Sftp.

Is there a tutorial ?
I've found only a tutorial for debugging on a local machine: https://wiki.eclipse.org/Debugging_using_XDebug.

Thank you very much

cld

[Updated on: Tue, 09 May 2017 15:23]

Report message to a moderator

Re: How to configure Eclipse to debug Drupal/PHP on a remote development server? [message #1763571 is a reply to message #1761291] Wed, 17 May 2017 13:48 Go to previous messageGo to next message
Harry Krak is currently offline Harry KrakFriend
Messages: 17
Registered: March 2016
Junior Member
This is the documentation for remote debugging from the Xdebug site
https://xdebug.org/docs/remote

I have never tried this myself, I do all my debugging locally.
Re: How to configure Eclipse to debug Drupal/PHP on a remote development server? [message #1764758 is a reply to message #1763571] Fri, 02 June 2017 06:50 Go to previous messageGo to next message
Virginia Luther is currently offline Virginia LutherFriend
Messages: 1
Registered: June 2017
Junior Member
Thank you so much!
Re: How to configure Eclipse to debug Drupal/PHP on a remote development server? [message #1764904 is a reply to message #1763571] Sat, 03 June 2017 10:06 Go to previous message
Claudio Claudio is currently offline Claudio ClaudioFriend
Messages: 2
Registered: May 2017
Junior Member
Thank you very much, but as all the online documentation it deals about how to debug php/Drupal with Eclipse with a local setup, not with a remote development server.
Previous Topic:mysqli content assist
Next Topic:Fails to install org.eclipse.php.importer
Goto Forum:
  


Current Time: Thu Mar 28 19:12:01 GMT 2024

Powered by FUDForum. Page generated in 0.02114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top