On 3/16/2018 12:34 PM, Richard Dunne wrote:
> How do I get XDebug to start debugging when I submit a form?. I start
> the debugger, Step buttons are inactive and nothing happens when I
> submit a form. Are there any tutorials for this?
> --
> Sincerely,
>
> Richard Dunne B.Sc.
Did you get it working? What xdebug INI settings have you set? Make sure
to at least enable xdebug.remote_enable. Is the web server running
directly on the host machine? Or in a VM of some kind? If the latter is
the case, then you'll want to make sure xdebug.remote_host is set
appropriately, as xdebug.remote_connect_back might not get the
appropriate hostname/IP automatically.
Also, you can either set xdebug.remote_autostart or make sure you set a
request variable or cookie of the expected name and value
<https://xdebug.org/docs/remote#browser_session> when submitting the
form. There are handful of nice browser plugins out there where you can
enable the sending of the appropriate data to trigger the Xdebug
session. And make sure your IDE is listening for Xdebug responses, of
course. If anything, you can set xdebug.remote_log to try to get a
better idea of what might be going on.
Let us know how things progress...
--Spencer
Received on Sat Mar 17 2018 - 21:49:50 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST