How to correctly configure Eclipse and/or Xdebug for remote debugging [message #1809854] |
Wed, 24 July 2019 16:18  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10674 seconds