Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to correctly configure Eclipse and/or Xdebug for remote debugging
How to correctly configure Eclipse and/or Xdebug for remote debugging [message #1809854] Wed, 24 July 2019 20:18 Go to next message
Steve Platz is currently offline Steve PlatzFriend
Messages: 1
Registered: July 2019
Junior Member
Unlike many of the posters here, I'm able to get my breakpoints hit when I'm debugging PHP. What is annoying is, since I have configured xdebug in Eclipse to prompt to accept remote sessions (this is necessary since my application is running in a container), I get prompted over and over again whenever I load a page in my browser or otherwise use the application in any way. I've searched a little, but I'm probably not using a good query to get relevant results online and in the documentation; clearly this configuration is not ideal. In my php.ini, I have set only a few settings, I'll include them below.

xdebug.max_nesting_level = 256
xdebug.show_exception_trace = 0
xdebug.collect_params = 0
xdebug.remote_enable = 1
xdebug.remote_autostart = 1


I'm suspicious of the remote_autostart setting, but in my experiments without it, I can't get a debugging session to connect.
Re: How to correctly configure Eclipse and/or Xdebug for remote debugging [message #1814833 is a reply to message #1809854] Thu, 19 September 2019 12:48 Go to previous messageGo to next message
thery chen is currently offline thery chenFriend
Messages: 8
Registered: September 2019
Junior Member
Same problem here on a fresh Debian Buster Eclipse 2019 install Version: 2019-03 (4.11.0)

I defined a distinct local vhost for my application http://app.loc and I can break in it. But if I access any url on http://localhost I'm asked to "Select a path mapping" to /home/www/index.php
If I access http://localhost/phpmyadmin it asks me a path mapping for /usr/share/phpmyadmin/index.php

Any solution ?
Re: How to correctly configure Eclipse and/or Xdebug for remote debugging [message #1814884 is a reply to message #1814833] Sat, 21 September 2019 12:13 Go to previous messageGo to next message
thery chen is currently offline thery chenFriend
Messages: 8
Registered: September 2019
Junior Member
And more, testing on a really remote server, setting the xdebug.remote_autostart seems to alter the whole web server (Apache2). Debugging one domain, another could not read its CSS files !?
Did not have time to go further. I reset the flag and the other domain can read all his files properly again...

Noone knows anything about that Eclipse/Xdebug problem here ?
Re: How to correctly configure Eclipse and/or Xdebug for remote debugging [message #1814937 is a reply to message #1814884] Mon, 23 September 2019 08:01 Go to previous message
thery chen is currently offline thery chenFriend
Messages: 8
Registered: September 2019
Junior Member
Well seems there is nobody on that forum.

For ghosts that may pass in future: Installing the firefox extension xdebug solved the problem for me
https://addons.mozilla.org/en-GB/firefox/addon/xdebug-helper-for-firefox/

[Updated on: Mon, 23 September 2019 08:02]

Report message to a moderator

Previous Topic:keyboard can't write quotation mark
Next Topic:manifest with the maven dependencies
Goto Forum:
  


Current Time: Tue Apr 20 08:24:27 GMT 2021

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

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

Back to the top